3
未接收到BCC/CC(在標題中)中指定的收件人。 我發現了一些類似的問題,沒有回答的帖子...PHP SMTP BCC,未通過
代碼如下,問題是:「有沒有你有類似的問題?
require_once "Mail.php";
$host = "mail.mailserver.com";
$username = "[email protected]";
$password = "getyourownpassword";
$headers = array ('From' => "User Name <$username>",
'To' => $to_,
'Cc' => 'Patty <[email protected]>',
'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);
`require_once「Mail.php」;`這是什麼庫? – Orbling 2010-12-01 00:23:20
@Orbling標準PEAR郵件模塊。 – 2010-12-02 14:00:30