我已经在我的一些代码中记录了这个问题:
/**
* Add a BCC.
*
* Note that according to the conventions of the SMTP protocol all
* addresses, including BCC addresses, are included in every email as it
* is sent over the Internet. The BCC addresses are stripped off blind
* copy email only at the destination email server.
*
* @param string $email
* @param string $name
* @return object Email
*/
我不记得从哪里获得它(可能的来源),但这与问题无关。基本上,每当我尝试通过SMTP发送带有BCC的电子邮件时,BCC地址都不会隐藏 - 我已经阅读了SMTP协议的整个RFC(几年前),我认为我没有遗漏任何内容。
奇怪的是,如果我使用内置的
mail()
函数发送带有BCC的电子邮件,一切都正常,我不知道为什么 - 我想自己编写电子邮件发送器,但我无法理解这一点。请问有人能够阐明这个黑暗的主题吗?