php mail() function detected as spam
<p>I use a simple mail function for a contact form in my website.</p>

<pre><code>$name = stripslashes($_POST['name']);
$email = trim($_POST['email']);
$text = stripslashes($_POST['message']);

$message = '&lt;html&gt;&lt;body&gt;'.nl2br($text)."&lt;/body&gt;&lt;/html&gt;";
$mail = mail("info@domain.com", "Contact Form", $message,
     "From: ".$name." &lt;".$email."&gt;\r\n"
    ."Reply-To: ".$email."\r\n"
    ."X-Mailer: PHP/" . phpversion()
    ."MIME-Version: 1.0\r\n"
    ."Content-Type: text/html; charset=utf-8");
</code></pre>

<p>The email is send BUT it is always detected as Spam which is not good.
Probably because the "FROM" is the email given by the visitor in the form.</p>

<p>How to solve this?</p>
