无法通过(php)发送邮件功能的html

时间:2014-01-30 03:09:32

标签: php function email

我在mail()功能

中遇到问题

我无法通过(php)

mail()函数中发送html

我使用这个声明:

 $headers .= "MIME-Version: 1.0\n";
 $headers .= "Content-type: text/html; charset=iso-8859-1\n";

1 个答案:

答案 0 :(得分:2)

您必须在电子邮件标头中为备用邮件内容类型指定Content-Type: multipart/mixed

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed; "\n\n";