douxunnian0423
2014-03-24 07:22
浏览 296
已采纳

使用SMTP发送邮件时使用Cc和Bcc的问题 - PHP

I'm sending email from my php page using SMTP. everything works perfect except Bcc.

This is how I got my email, Interestingly I can see bcc as well. enter image description here

Whats wrong in my code, can anyone please help.

$Headers = array("MIME-Version"=> '1.0', 
"Content-type" => "text/html; charset=iso-8859-1",
"From" => $From,
"To" => $To, 
"Bcc" => $User_copy,
"Reply-To" => $From,
"Subject" => $Subject);

$SMTP = Mail::factory('smtp', array ('host' => $Host, 'auth' => true, 'username' => $Username, 'password' => $Password)); 
$mail = $SMTP->send($To, $Headers, $Message);
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题