PHPMailer Mass mailing using BCC and catching not successfull email addressses

我们两清 提交于 2019-11-29 13:08:10

In your code you are sending one message to 1 address and BCCing to all the others, so there is only a single To address - this is just how BCC works. If you want to have each recipient's address shown as the To address, you must send each message individually - look at the mailing list example provided. If you want to spot failures in a long list of recipients of any kind, make sure you're using an up-to-date version of PHPMailer as that was buggy in the past. Any bad addresses will be reported in $mail->ErrorInfo.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!