PHPMailer not sending CC or BCC

血红的双手。 提交于 2019-12-05 08:20:27

Old question, but I ended up here looking for an answer. Just learned elsewhere that those functions AddCC and AddBCC only work with win32 SMTP

Try using:

$mail->addCustomHeader("BCC: mybccaddress@mydomain.com"); 

See http://phpmailer.worxware.com/?pg=methods

Hope this helps someone, cheers!

user2823361
$address = "xxxxx@gmail.com";
$mail->AddAddress($address, "technical support");


$address = "yyyyyy@gmail.com";
$mail->AddAddress($address, "other");


$addressCC = "zzzzzz@gmail.com";
$mail->AddCC($addressCC, 'cc account');


$addressCC = "bcc@gmail.com";
$mail->AddBCC($addressCC, 'bcc account');
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!