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


PHP Zend_Mail::clearReplyTo方法代码示例

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


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

示例1: setReplyTo

 public function setReplyTo($email, $name = null)
 {
     parent::clearReplyTo();
     return parent::setReplyTo($email, $name);
 }
开发者ID:koala-framework,项目名称:koala-framework,代码行数:5,代码来源:Mail.php

示例2: catch

     $mail->clearFrom();
     $mail->clearSubject();
     $mail->addTo($AGENT_CONTACTS["agent-clerkship-international"]["email"], $AGENT_CONTACTS["agent-clerkship-international"]["name"]);
     $mail->setFrom($_SESSION["details"]["email"] ? $_SESSION["details"]["email"] : "noreply@queensu.ca", $_SESSION["details"]["firstname"] . " " . $_SESSION["details"]["lastname"]);
     $mail->setSubject("International Electives Approval - " . APPLICATION_NAME);
     $mail->setReplyTo($AGENT_CONTACTS["agent-clerkship"]["email"], $AGENT_CONTACTS["agent-clerkship"]["name"]);
     $mail->setBodyText($message);
     try {
         $mail->send();
     } catch (Zend_Mail_Transport_Exception $e) {
         $ERROR++;
         $ERRORSTR[] = "There was a problem sending the approval email to the international rep for this elective. The MEdTech Unit was informed of this error; please try again later.";
         application_log("error", "There was an error sending an approval email to the international clerkship admin for clerkship elective ID[" . $EVENT_ID . "]. Mail said: " . $e->getMessage());
     }
     $mail->clearRecipients();
     $mail->clearReplyTo();
 }
 $message = "Attention " . $student_name . ",\n\n";
 $message .= "A Clerkship elective has been approved by the undergraduate office:\n";
 $message .= "=======================================================\n\n";
 $message .= "Approved At:\t\t" . date("r", time()) . "\n";
 $message .= "Approved By:\t\t" . $_SESSION["details"]["firstname"] . " " . $_SESSION["details"]["lastname"] . " [" . $_SESSION["details"]["username"] . "]\n";
 $message .= "E-Mail Address:\t\t" . $_SESSION["details"]["email"] . "\n\n";
 $message .= "Contact:\t\t" . $AGENT_CONTACTS["agent-clerkship"]["email"] . " if you have any questions.\n\n";
 $message .= "-------------------------------------------------------\n\n";
 $message .= "Go here to view this elective: " . ENTRADA_URL . "/clerkship/electives?section=view&id=" . $EVENT_ID . "\n\n";
 $message .= $international_msg;
 $message .= "=======================================================";
 $mail->addHeader("X-Priority", "3");
 $mail->addHeader('Content-Transfer-Encoding', '8bit');
 $mail->addHeader("X-Originating-IP", $_SERVER["REMOTE_ADDR"]);
开发者ID:nadeemshafique,项目名称:entrada-1x,代码行数:31,代码来源:add_elective.inc.php


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