我只是想知道是否有人在这里看到任何错误,代码执行但我从未收到电子邮件,有什么建议吗?
$to = $_POST['to_email'];
$subject = $_POST['subject'];
$message='<p><b>Message:</b> '.str_replace("\n.", "\n..", $_POST['message']).'</p>';
$headers = "From: " . strip_tags($_POST['from_email']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['from_email']) . "\r\n".
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);