2009-12-07 80 views
0

我試圖通過GMail SMTP發送一些電子郵件,CC和BCC行都沒有收到電子郵件。我用Evolution(Linux電子郵件客戶端)測試了GMail SMTP,它工作正常,但我無法獲得通信的原始轉儲,因爲它通過SSL。Zend_Mail的SMTP協議問題

下面是使用Zend_Mail通信日誌:

220 mx.google.com ESMTP 22sm2669783yxe.39 
EHLO localhost 
250-mx.google.com at your service, [67.152.160.2] 
250-SIZE 35651584 
250-8BITMIME 
250-AUTH LOGIN PLAIN 
250-ENHANCEDSTATUSCODES 
250 PIPELINING 
AUTH LOGIN 
334 VXNlcm5hbWU6 
[removed] 
334 UGFzc3dvcmQ6 
[removed] 
235 2.7.0 Accepted 
MAIL FROM:[removed] 
250 2.1.0 OK 22sm2669783yxe.39 
RCPT TO:<[email protected]> 
250 2.1.5 OK 22sm2669783yxe.39 
RCPT TO:<[email protected]> 
250 2.1.5 OK 22sm2669783yxe.39 
RCPT TO:<[email protected]> 
250 2.1.5 OK 22sm2669783yxe.39 
DATA 
354 Go ahead 22sm2669783yxe.39 
From: [removed] 
To: [email protected] 
Cc: [email protected] 
Subject: My Test Subject 
Date: Mon, 07 Dec 2009 14:21:49 -0600 
Content-Type: text/plain; charset=iso-8859-1 
Content-Transfer-Encoding: quoted-printable 
Content-Disposition: inline 
MIME-Version: 1.0 

My test body 
. 
250 2.0.0 OK 1260217313 22sm2669783yxe.39 

我不知道有足夠的瞭解SMTP協議弄清楚的Zend_Mail沒有做它需要做的CC/BCC線工作。

+0

這看起來正確。如果zf-mail-test - * @ mailinator.com地址是主要收件人(即,不是CC'd或BCC),那麼所有收到的郵件都會收到 - 也就是說,如果您一次發送郵件-a時間? – leepowers

+0

是的。我在SO之外得到的一般意見是,所有mailinator.com地址基本上都是一個大郵箱的別名,而他們的SMTP服務器不會將重複的電子郵件發送到同一個郵箱。相同的行爲適用於[email protected]。 +無論是郵箱的別名,因此只傳送一個副本。 – Toxygene

回答