我试图通过GMail发送一些电子邮件,而CC和BCC线路没有收到电子邮件。我已经用进化(Linux )测试了GMail SMTP,虽然我无法获得通信的原始转储,因为它是通过SSL进行的。
以下是来自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:<zf-mail-test-1@mailinator.com>
250 2.1.5 OK 22sm2669783yxe.39
RCPT TO:<zf-mail-test-2@mailinator.com>
250 2.1.5 OK 22sm2669783yxe.39
RCPT TO:<zf-mail-test-3@mailinator.com>
250 2.1.5 OK 22sm2669783yxe.39
DATA
354 Go ahead 22sm2669783yxe.39
From: [removed]
To: zf-mail-test-1@mailinator.com
Cc: zf-mail-test-2@mailinator.com
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线路正常工作。
发布于 2009-12-09 00:51:35
请参阅:http://forums.codewalkers.com/pear-packages-47/email-bcc-header-confusion-840705.html
特别是:
使用SMTP的
,所有收件人必须在发送中作为param 1列出,并且To/Cc/Bcc标头的内容对发送的内容没有任何影响--它们只是接收者的信息。
在一个项目中,我做了一段时间前,我必须发送电子邮件给每个BCC的收件人。
https://stackoverflow.com/questions/1862701
复制相似问题