Home > Backend Development > PHP Tutorial > PHP mail的有关问题

PHP mail的有关问题

WBOY
Release: 2016-06-13 12:51:42
Original
878 people have browsed it

PHP mail的问题
请问一下,
LINUX下,用mail发送HTML给邮箱,有出现个别异常的排版问题。
像类似下面

TS110
PH100 

这样的内容本来应该在td里,却跑到页面前面去了



而且相同内容每次发送异常都不大一样,有时候是这些内容,有时候是那些内容。

HTML已经去除掉所有样式,只剩下table tr td hr这样的标签,font的标签都没有使用

请问是mail函数的问题,还是哪里需要注意?发送MAIL已经有标志

Content-type:text/html;


------解决方案--------------------
添加Content-Transfer-Encoding:quoted-printable \r\n

再把内容解析,也可用base64_encode解析内容,

Content-Transfer-Encoding:base64 \r\n

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template