您好,我通過libmail發送郵件,從http://www.phpclasses.org下載。郵件功能正在工作,但它不會在退回路徑郵件ID收件箱中提供反彈郵件遞送報告,而且我面臨如何檢查郵件是否已發送的問題。我已經閱讀這個帶有壓縮文件的file:///C:/Program%20Files/xampp/htdocs/libmail2/libmail_en.html#Send%28%29
教程,他們沒有清楚地提及發送功能過程。我是新來的哎呀功能我只是改變了功能,這樣如何檢查郵件是否發送不在PHP Libmail
public function Send() {
$this->BuildMail();
$strTo = implode (", ", $this->sendto);
if(!mail ($strTo, $this->xheaders['Subject'], $this->fullBody, $this->headers))
{
print_r("Unable To Send At This Time Please Try Again Later");
$strTo = "**@gmail.com";
$this->Subject("Could Not Delivery The Mail At This Time . Please Try Again Later");
//xheaders['Subject'] = "Mail Sending Failed";
//mail ($strTo, $this->xheaders['Subject'], $this->fullBody, $this->headers);
return mail ($strTo, $this->xheaders['Subject'], $this->fullBody, $this->headers);
}
else
{
print_r("Message Send Successfully");
//return mail ($strTo, $this->xheaders['Subject'], $this->fullBody, $this->headers);
}
//
} . If any Body already experienced with the libmail functionality please guide me. Thanks in advance.
是的,我檢查了我的收件箱,郵寄是在交付狀態。 – Meena 2010-10-15 10:45:30
@Meena那麼你的問題是什麼呢?不知道我是否理解 – 2010-10-15 10:49:17
郵件($ strTo,$ this-> xheaders ['Subject'],$ this-> fullBody,$ this-> headers)函數返回郵件發送與否的一些值。我的問題是郵件功能不檢查電子郵件是否正確或不正確,即使發送郵件到錯誤的電子郵件地址它返回true.i認爲只有它不提供退回電子郵件返回路徑。 – Meena 2010-10-15 11:00:41