我一直在尝试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这是邮件正文
请帮