我遇到了一个发送电子邮件确认的PHP脚本的问题。当在Thunderbird中接收到电子邮件时,标题出现在\ r \ n目录中,MIME类型也包含内容类型信息。因此,电子邮件呈现为纯文本而不是HTML。使用PHP邮件 - 设置正确的MIME类型
如果我注释掉MIME类型如下,则电子邮件呈现正确。首先,这样做是否存在重大问题?其次,可能会造成这种情况?
if($apptpro_config->html_email == "Yes"){
//$headers .= 'MIME-Version:1.0\r\n';
$headers .= 'Content-type:text/html; charset=ISO-8859-1\r\n';
}
return(mail($to, $subject, $message, $headers));
杜佩http://stackoverflow.com/questions/3644081/what-is-the-format-for-e-mail-headers-that-display-a-name的-rather超的的电子邮件。 – 2013-03-26 14:59:12