我正在使用 Phpmailer 发送邮件。除了密件抄送外,它运行良好。密件抄送收件人看不到抄送和收件人。为什么会这样?
require_once("PHPMailer_v5.1/class.phpmailer.php");
$mailer = new PHPMailer();
$mailer->IsSMTP();
$mailer->SMTPAuth = true;
$mailer->SMTPSecure = "tls";
$mailer->Host = 'smtp.gmail.com';
$mailer->Port = 587;
$mailer->Username = $userid;
$mailer->Password = $epwd;
$mailer->FromName = $fromname;
$mailer->From = $userid;
$mailer->AddAddress($to,$toname);
$mailer->Subject = $subject;
$mailer->Body =$content;
$mailer->AddCC($cc, $tocc);
$mailer->AddBCC($bcc, $tobcc);
$mailer->AddAttachment($dest_filename);
$mailer->Send()