未收到密件抄送/抄送(在标题中)中指定的收件人。找了几篇类似问题的帖子,没有答案。。。
代码如下,问题是:“你们有没有类似的问题?”
require_once "Mail.php";
$host = "mail.mailserver.com";
$username = "notification@yourhost.com";
$password = "getyourownpassword";
$headers = array ('From' => "User Name <$username>",
'To' => $to_,
'Cc' => 'Patty <patty@gmail.com>',
'Subject' => $subj_,
'Content-type' => 'text/html');
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to_, $headers, $mail_msg);