当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Mail::Send方法代码示例

本文整理汇总了PHP中Zend_Mail::Send方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Mail::Send方法的具体用法?PHP Zend_Mail::Send怎么用?PHP Zend_Mail::Send使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Mail的用法示例。


在下文中一共展示了Zend_Mail::Send方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: date

     $message .= "=======================================================\n\n";
     $message .= "Submitted At:\t\t" . date("r", time()) . "\n";
     $message .= "Submitted By:\t\t" . $fullname . " [" . (isset($_POST["hide_identity"]) ? "withheld" : $_SESSION["details"]["username"]) . "]\n";
     $message .= "E-Mail Address:\t\t" . $email_address . "\n\n";
     $message .= "Comments / Feedback:\n";
     $message .= "-------------------------------------------------------\n";
     $message .= clean_input($_POST["feedback"], array("trim", "emailcontent")) . "\n\n";
     $message .= "Web-Browser / OS:\n";
     $message .= "-------------------------------------------------------\n";
     $message .= clean_input($_SERVER["HTTP_USER_AGENT"], array("trim", "emailcontent")) . "\n\n";
     $message .= "URL Sent From:\n";
     $message .= "-------------------------------------------------------\n";
     $message .= (isset($_SERVER["HTTPS"]) ? "https" : "http") . "://" . $_SERVER["HTTP_HOST"] . clean_input($extracted_information["url"], array("trim", "emailcontent")) . "\n\n";
     $message .= "=======================================================";
     $mail->setBodyText($message);
     if ($mail->Send()) {
         echo "<h4>Feedback Submission Successful</h4>";
         add_success("Thank-you for providing us with your valuable feedback.<br /><br />Once again, thank-you for using our automated anonymous feedback system and feel free to submit comments any time.");
         echo display_success();
         echo "<div style=\"text-align:right;\"><input type=\"button\" class=\"btn\" value=\"Close\" /></a>";
     } else {
         add_error("We apologize however, we are unable to submit your feedback at this time due to a problem with the mail server.<br /><br />The system administrator has been informed of this error, please try again later.");
         echo display_error();
         application_log("error", "Unable to send anonymous feedback with the anonymous feedback agent.");
     }
 } else {
     add_error("We apologize however, we are unable to submit your feedback at this time due to a problem with the mail server.<br /><br />The system administrator has been informed of this error, please try again later.");
     echo display_error();
     application_log("error", "An error ocurred when trying to send feedback to agent [" . $WHO . "], no recipients found in language file.");
 }
 break;
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:agent-feedback.php


注:本文中的Zend_Mail::Send方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。