我有一个邮件功能,它将邮件发送给从数据库中提取的收件人。如何隐藏其他收件人?密件抄送不起作用。邮件来源:
$to=array();
while($row = mysql_fetch_array($subscrquery)) {
array_push($to, $row['subscr_mail']);
}
$msgheader=$ttl;
$mailheaders = "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-type: text/html; charset=UTF-8\r\n";
$mailheaders .= "From: ".$sender." <".$sender.">\r\n";
$mailheaders .= "Reply-To: ".$sender." <".$sender.">\r\n";
$mailheaders .= "Bcc: ".implode(',', $to)."\r\n";
$mailmsga .= stripslashes($mailcontent);
$mailmsg .= strtr($mailmsga, array("<" => "\n<"));
mail(implode(',', $to), $msgheader,$mailmsg,$mailheaders);