我一直在嘗試PHPMailer示例腳本,如其README文件中給出的。現在,當我運行該腳本:在郵件正文中用PHP封裝的MIME頭文件郵寄問題
<?php
require("phpmailer.inc.php");
$mail = new phpmailer;
//$mail->IsSMTP(); // set mailer to use SMTP
$mail->From = "[email protected]";
$mail->FromName = "Mailer";
//$mail->Host = "smtp1.site.com;smtp2.site.com"; // specify main and backup server
$mail->AddAddress("[email protected]");
//$mail->AddAddress("[email protected]"); // name is optional
$mail->AddReplyTo("[email protected]", "Information");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("c:\\temp\\js-bak.sql"); // add attachments
//$mail->AddAttachment("c:/temp/11-10-00.zip");
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the message body";
$mail->Send(); // send message
?>
我得到以下警告:
警告:mb_send_mail()[function.mb-發送郵件]:不支持的字符集 「」 ISO-8859 -1 「;」 - 在 /export/opt/samplefiles/phpmailer.inc.php將被視爲ASCII上線162
和所接收的消息中包含的報頭,以及:
MIME的版本:1.0這是郵件正文
請幫