我已经在本地主机中设置了电子邮件发送,并使用它可以访问我的gmail帐户以使用php脚本发送邮件。未在邮件中显示HTML内容
<?php
$to = "[email protected]";
$subject = "HTML Mail";
$message = "<html><body>";
$message .= "<b>Hey! How are you today?</b>";
$message .= "<br>Regards";
$message .= "</body></html>";
$headers = "From: [email protected]\r\n";
mail($to,$subject,$message,$headers);
echo "<h1>MAIL SENT</h1>";
?>
当我把使用这个脚本了该邮件,它给出了
<html><body><b>Hey! How are you today?</b><br>Regards</body></html>
为什么不显示HTML类型的输出?
嘿!你今天好吗?
Regards
像这样在Gmail吗?
是它的工作:d –