Home >Backend Development >PHP Tutorial > SMTP邮件操作类 发有邮件 中文内容是乱码解决思路

SMTP邮件操作类 发有邮件 中文内容是乱码解决思路

WBOY
WBOYOriginal
2016-06-13 13:39:111509browse

SMTP邮件操作类 发有邮件 中文内容是乱码
SMTP邮件操作类 发有邮件 中文内容是乱码

在线等1!谢谢

------解决方案--------------------
设置编码,转一下编码。
用phpmailer吧
http://sourceforge.net/projects/phpmailer/
http://cutso.blog.sohu.com/84261479.html
------解决方案--------------------
用 phpmailer 类,加入下面两行设置。还有文件最好转为UTF8的文件,用ULTRAEDIT可以做转换。

$mail->CharSet = "UTF-8";
$mail->Encoding = "base64";

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn