【发布时间】:2015-09-23 08:58:09
【问题描述】:
我是 php 新手,正在尝试通过 php 邮件功能发送电子邮件。在 gmail 帐户中,电子邮件显示正常,但除了 gmail,我在电子邮件正文中收到了 html 标记作为文本。
这是我的代码 sn-p:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=ISO-8859-1' . "\r\n";
$headers .= "Reply-To:abc@abc.com" . "\r\n";
$headers .= "BCC: $bcc" . "\r\n";
$headers .= "From: $from" . "\r\n";
我正在使用的邮件功能是:
mail( $to, $subject, $body, $headers )
【问题讨论】:
-
显示您的电子邮件模板
标签: php