我在mail()
功能
我无法通过(php)
在mail()
函数中发送html
我使用这个声明:
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
答案 0 :(得分:2)
您必须在电子邮件标头中为备用邮件内容类型指定Content-Type: multipart/mixed
。
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; "\n\n";