我一直在尝试其 README 文件中给出的 PHPMailer 示例脚本。现在,当我运行该脚本时:
<?php
require("phpmailer.inc.php");
$mail = new phpmailer;
//$mail->IsSMTP(); // set mailer to use SMTP
$mail->From = "from@email.com";
$mail->FromName = "Mailer";
//$mail->Host = "smtp1.site.com;smtp2.site.com"; // specify main and backup server
$mail->AddAddress("someone@someplace.com");
//$mail->AddAddress("ellen@site.com"); // name is optional
$mail->AddReplyTo("info@site.com", "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-send-mail]: 不支持的字符集 ""iso-8859-1";" - 在第 162 行的 /export/opt/samplefiles/phpmailer.inc.php 中将被视为 ascii
并且收到的消息也包含标题:
Mime-Version: 1.0 这是邮件正文
请帮忙