我正在使用PHP邮件功能发送邮件,正在发送邮件。但它没有收到。没有代码错误,我已经收到一封邮件。但没有更多...
$to = 'greenwichnexus@gmail.com';
$subject = $_POST['subject'];
$email = $_POST['email'];
$name = $_POST['name'];
$phone = $_POST['phone'];
$list = $_POST['list'];
$headers = "From: ".$name." <".$email.">\r\n";
$headers .= "Reply-To: ".$email."\r\n";
$headers .= "Contact: ".$phone."\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$message = $headers."<br> <br> ".$_POST['message']." <br> <br> <br> Menu List - <br> <br> ".$list;
'X-Mailer: PHP/' . phpversion();
$retval = mail($to, $subject, $message, $headers);
if($retval)//change
{
echo "Message sent successfully...";
}
else
{
echo "Message could not be sent...";
}