我使用郵件功能如下:PHP郵件功能不發送電子郵件至有效帳戶相同的域
mail($emailto, $subject, $body, $headers);
mail('[email protected]', $subject.'/'.$emailto, $body, $headers);
第一個適用於終端用戶。第二份是爲了記錄保存目的。
有時enduser指定他們的電子郵件地址,其他時間是空白。
- 當指定的電子郵件地址,最終用戶actuallys得到的電子郵件沒有任何問題
- 然而,沒有電子郵件獲取這兩種情況下發送到[email protected] - 我檢查垃圾郵件文件夾,好。
在my/mail/new文件夾中,我看到了許多與下面類似的文件。錯誤是不正確的,因爲[email protected]是一個有效的電子郵件地址(使用谷歌的域名設置)。
Return-path: <> Envelope-to: [email protected] Delivery-date: Mon, 28 Jun 2010 12:37:28 -0400 Received: from mailnull by myhostingprovider.com with local (Exim 4.69) id UNIQUEIDZ-7x for [email protected]; Mon, 28 Jun 2010 12:37:28 -0400 X-Failed-Recipients: [email protected] Auto-Submitted: auto-replied From: Mail Delivery System <[email protected]> To: [email protected] Subject: Mail delivery failed: returning message to sender Message-Id: <[email protected]> Date: Mon, 28 Jun 2010 12:37:28 -0400 This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] No Such User Here ------ This is a copy of the message, including all the headers. ------ Return-path: <[email protected]> Received: from nobody by myhostingprovider.com with local (Exim 4.69) (envelope-from <[email protected]>) id UNIQUEIDV-6b for [email protected]; Mon, 28 Jun 2010 12:37:28 -0400 To: [email protected] Subject: mysite.com: SUBJECT/[email protected] X-PHP-Script: www.mysite.com/mysitescript.php for IPADDRESS MIME-Version: 1.0 Content-type: text/html; charset=UTF-8 From: mysite.com Service <[email protected]> Message-Id: <[email protected]> Date: Mon, 28 Jun 2010 12:37:28 -0400
您是否確實驗證過電子郵件地址有效? – 2010-06-29 05:53:21
是的,電子郵件地址是有效的,沒有問題發送/接收通過普通的電子郵件客戶端... – Dave 2010-07-01 10:01:49