title: sending mail with php & escaping hotmails junk folder
body: <p>I have been trying to get PEAR::mail to successfully deliver emails to hotmail users without being flagged as SPAM and ending up in the junk folder, i have no problems with yahoo/gmail only with hotmail.</p>
  
  <p>google suggested that this is a common problem with hotmail and that possible causes can include</p>
  
  <ul>
  <li>incorrect reverse DNS for main IP of the server</li>
  <li>lack of SenderId/SPF records </li>
  <li>being blacklisted</li>
  </ul>
  
  <p>having checked all of the above i can only think of one other reason - incorrectly formatted headers ?</p>
  
  <p>to test this theory i set up outlook to send email via the same address that PEAR::mail uses and sent a quick test - it delivered straight to my inbox</p>
  
  <p>so i compared the headers from the email sent from PEAR::mail against the headers sent by Outlook and there are only a few differences - i have only listed the differences to save space (and peoples eyes)</p>
  
  <p>PEAR::mail headers (not in outlook headers)</p>
  
  <pre><code>X-PHP-Script: www.example.com/register.php for [users ip address]
  </code></pre>
  
  <p>Outlook headers (not in PEAR::mail headers)</p>
  
  <pre><code>X-Mailer: Microsoft Office Outlook 11
  Thread-Index: Ack6CWSQlgV8s6+6SWyifka2NNpB7g==
  X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
  </code></pre>
  
  <p>the only other differences that i can see are</p>
  
  <ul>
  <li>the order of the From: and To: headers are reversed </li>
  <li>and in the Received: section of the headers</li>
  </ul>
  
  <p>Outlook</p>
  
  <pre><code>Received: from myhomehostname.com ([ip address] helo=simber) 
  by mywebhostname.com with local (Exim 4.67)
  </code></pre>
  
  <p>PEAR::mail</p>
  
  <pre><code>Received: from apache by mywebhostname.com with local (Exim 4.67)
  </code></pre>
  
  <p>could these small differences in the headers be the cause or am i looking in the wrong place ? i knew this might be problematic hence why i chose to use the PEAR::mail class rather than rolling my own but now i really have no idea where to go with this, any help would be greatly appreciated.</p>
  
  <p><strong><em>Update:</em></strong> as per changelog's suggestion i have tried adding the MS headers to the PEAR::mail class and i have tried replacing PEAR::mail with PHPMailer (with &amp; without the extra headers) - they all end up in the junk folder.</p>
  
  <p>I am starting to believe that it may not be the headers afterall.</p>
  
  <p><strong><em>Update 2:</em></strong> i should have mentioned that the emails are just a registration confirmation to validate the email address the user signed up with - no mailshots etc so our volume is extremely low. </p>
  
  <p>I have considered warning users who provide a @hotmail/live email address to add us to their address book or check their junk folder - but this just seems unprofessional to me - it may be that i have to resort to this.</p>
  
  <p>As for becoming Sender Score Certified - its very unlikely that i can justify the cost of this when considering the low volume and purpose of these emails.</p>