请有人告诉我这段代码有什么问题吗?

时间:2015-06-13 17:35:49

标签: php email

<?php
if(isset($_POST['email'])){
        $subject = "mail from web";
        $body = "New message from web
<br><br>
FROM: ".$_POST['email']."<br>
NAME: ".$_POST['author']."<br>
COMMENTS: ".$_POST['message']."<br>";
		$headers = "To: nixon <*****@*****.***>\r\n";
        $headers .= "From: ".$_POST['author']." <".$_POST['email'].">\r\n";
        $headers .= "Content-Type: text/html";
        //envio destinatario
        $mail_success =  mail($mailTo, utf8_decode($subject), utf8_decode($body), $headers);
}

?>

它来自一个html模板,它说消息发送但根据hmail日志甚至没有与smtp服务器通信

0 个答案:

没有答案