title: Complete mail header
body: <p>I need a set of mail headers to attach to my <code>mail()</code> function in PHP. I send emails with HTML in them, and sometimes services like <a href="http://en.wikipedia.org/wiki/Yahoo!_Mail" rel="noreferrer">Yahoo Mail</a> block them. Therefore I need to make sure that I am at least providing the right headers.</p>
  <h3>My code:</h3>
  <pre><code>// To send HTML mail, the 'Content-type' header must be set
  $headers  = 'MIME-Version: 1.0' . &quot;\r\n&quot;;
  $headers .= 'Content-type: text/html; charset=iso-8859-1' . &quot;\r\n&quot;;
  
  // Additional headers
  $headers .= 'From: MyCompany &lt;welcome@mycompany.com&gt;' . &quot;\r\n&quot;;  
  </code></pre>
  <p>Is there anything else I should add?</p>