我使用简单的php邮件。它工作得很好但是当我将abc@gmail.com添加到邮件正文时它只是不工作但是当我用abc(a)gmail(dot)com替换abc@gmail.com时,它&# 39; s工作得很好并且收到电子邮件。究竟是什么问题?这是服务器问题吗? 代码:
$fullname = $_POST['fullname'];
$partnername = $_POST['partnername'];
$placename = $_POST['placename'];
$datepicker = $_POST['datepicker'];
$coverage = $_POST['coverage'];
$clientmail =$_POST['email_client'];
$email_message = "Form details below.<br>";
$email_message .= "Full Name: ".$fullname."<br>";
$email_message .= "Parter Name: ".$partnername."<br>";
$email_message .= "Found Via: ".$placename."<br>";
$email_message .= "Date: ".$datepicker."<br>";
$email_message .= "Coverage: ".$coverage."<br>";
$email_message .= "Client Email: ".$clientmail;
$headers = 'MIME-Version: 1.0'.PHP_EOL;
$headers .= 'Content-type: text/html; charset=UTF-8'.PHP_EOL;
$headers .= 'From: '.$email_from."\r\n";
$headers .= "X-Mailer: PHP \r\n";
if(mail($email_to, $email_subject, $email_message, $headers)) {
$msg = 'YOUR MESSAGE HAS BEEN SENT. THANKS!';
$type = ' success';
unset($_POST);
} else {
$msg = 'Validation error. Check the boxes and send back.';
$type = ' error';
}
欢迎任何帮助/建议。