phpmailer设置使用utf-8编码发送邮件以后,已经能够正常的发送中文邮件了,当然你调用时传进去的中文参数必须也是utf-8编码才行,但是我发现,即使这样,发送中文文件名的附件的时候,附件名称不能正确的显示。
比如我们要发送的附件是“测试.txt”,如果在添加附件的时候强制使用指定文件名的方式:
$mail->AddAttachment($attach, $attach);
......
[阅读全文] Tags: attach, chinese, mail, messy, PHP, phpmailer