我已经编写了使用 php 发送电子邮件的代码。我不想把那封邮件变成垃圾邮件。我怎样才能避免将该邮件变成垃圾邮件?
<?php
$EmailTo = "name@example.com";
$Subject = "Enquiry from xxxx Website";
$name = $_REQUEST["name"];
$Body = $_REQUEST["body"];
$Subject = $_REQUEST["subject"];
$emailfrom = $_REQUEST["email"];
$phone = $_REQUEST["phone"];
$comments = $_REQUEST["comments"];
$todayis = date("l, j F Y, g:ia (T)") ;
// To send HTML mail, the Content-type header must be set
$headers .= "Organization: Sender Organization\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-Mailer: PHP". phpversion() ."\r\n";
// Prepare email body text
$Body = "Here is the information collected from your online enquiry form. It was submitted by:\n";
$Body .= "Email: ";
$Body .= $todayis;
$Body .= "\n\n";
$Body .= "Name: ";
$Body .= $name;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $emailfrom;
$Body .= "\n";
$Body .= "Phone: ";
$Body .= $phone;
$Body .= "\n";
$Body .= "Comments: ";
$Body .= $comments;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$emailfrom>");
?>