當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。