我正在为我的网站使用Codeigniter 2。当向多个用户发送电子邮件时,在客户端(gmail,hotmail,..)上,它将显示所有详细信息的收件人,如何隐藏地址以仅显示收件人地址。
谢谢
使用密件抄送发送批量电子邮件,如下所示:
function batch_email($recipients, $subject, $message)
{
$this->email->clear(TRUE);
$this->email->from('[email protected]', 'Display Name');
$this->email->to('[email protected]');
$this->email->bcc($recipients);
$this->email->subject($subject);
$this->email->message($message);
$this->email->send();
return TRUE;
}
$ recipients应该是逗号分隔的列表或数组
这意味着您将获得电子邮件的副本,但所有其他收件人都将被密送,因此不会看到彼此的地址
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句