本文整理匯總了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);
}
示例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"]);