I have the following code that emails to a hotmail user:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />$subject = "Email Subject";<br /><br />$header = "From: Some Person<[email protected]>\r\n" .<br />'Reply-To: Some Person <[email protected]>' . "\r\n" .<br />'X-Mailer: PHP/' . phpversion() . "\r\n" .<br />"MIME-Version: 1.0\r\n" .<br />"Content-Type: html; charset=utf-8\r\n" .<br />"Content-Transfer-Encoding: ?8bit\r\n\r\n"; <br /><br />$message = "Email Message";<br /><br />$sendmail = mail("[email protected]",$subject,$message,$header);<br /><!--c2--></div><!--ec2--><br /><br />This mail function sends emails to the hotmail user, but straight to hotmail's junk mail function. I have read that only html files will work, so I changed content-type from 'text/html' to 'html'. this seems wrong as it has attached a file to the email, which is most likely the email message. Also, I have read that "\r\n" may be a problem, so i changed it to "\n", still no results. All of these changes have not worked. So how do I avoid the dreaded junk mail function of email servers? yahoo and gmail works fine and my domain name is not blacklisted.
</div>
</div>