require dirname(__FILE__).’/PHPMailerAutoload.php’;
$mail = new PHPMailer;
$mail->CharSet=”utf-8″;
原因是:class.phpmailer.php 里面 有 $is_utf8 = (strtolower($this->CharSet) == ‘utf-8’); 判断是否是utf-8编码的邮件
require dirname(__FILE__).’/PHPMailerAutoload.php’;
$mail = new PHPMailer;
$mail->CharSet=”utf-8″;
原因是:class.phpmailer.php 里面 有 $is_utf8 = (strtolower($this->CharSet) == ‘utf-8’); 判断是否是utf-8编码的邮件
下载如下 smtp_test
phpmailer下载地址 https://github.com/PHPMailer/PHPMailer