本文整理汇总了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"]);