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>");
?>