【发布时间】:2015-10-26 11:05:06
【问题描述】:
我有一个关于 PHP 邮件功能的问题。虽然我使用它只发送被检测为垃圾邮件的电子邮件,但更改或添加标题没有任何区别。
这是我的代码:
$to = $email;
$subject = "The Subject";
$message = "This is a message<br/>
This is another line<br>
And another line..<br>";
$headers = "From: example@mydomain.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "Reply-To: example@mydomain.com\r\n";
$headers .= "Return-Path: example@mydomain.com\r\n";
mail($to, $subject, $message, $headers);
有人可以帮帮我吗?
【问题讨论】:
-
如果你至少使用 Php-Mailer 会更好。