title: php mail() not sending HTML emails correctly
body: <p>I'm using the php script found here:</p>
  
  <p><a href="http://css-tricks.com/2866-sending-nice-html-email-with-php/" rel="nofollow">http://css-tricks.com/2866-sending-nice-html-email-with-php/</a></p>
  
  <p>I've uploaded it to my server - and it refuses to send emails correctly!</p>
  
  <p>This is what I receive in Gmail: (displays as raw html)</p>
  
  <pre><code>Content-Type: text/html; charset=ISO-8859-1
  &lt;html&gt;
      &lt;body&gt;
          &lt;img src="http://css-tricks.com/examples/WebsiteChangeRequestForm/images/wcrf-header.png" alt="Website Change Request" /&gt;
          &lt;table rules="all" style="border-color: #666;" cellpadding="10"&gt;
              &lt;tr style='background: #eee;'&gt;
                  &lt;td&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;/td&gt;
                  &lt;td&gt;sd&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Email:&lt;/strong&gt; &lt;/td&gt;
                  &lt;td&gt;myrealemail@gmail.com.au&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Type of Change:&lt;/strong&gt; &lt;/td&gt;
                  &lt;td&gt;Change to Existing Content&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;Urgency:&lt;/strong&gt; &lt;/td&gt;
                  &lt;td&gt;Super Wicked Urgent&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;URL To Change (main):&lt;/strong&gt; &lt;/td&gt;
                  &lt;td&gt;http://css-tricks.com/2866-sending-nice-html-email-with-php/&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;CURRENT Content:&lt;/strong&gt;&lt;/td&gt;
                  &lt;td&gt;fdasgdsfg&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;strong&gt;NEW Content:&lt;/strong&gt; &lt;/td&gt;
                  &lt;td&gt;sdfgsdgf&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is there any server settings that I may have to change???</p>
  
  <p>I've also used some wordpress plugins on this server that seem to have the same issue.</p>
  
  <p>Any ideas would be great.</p>
  
  <p>UPDATE:</p>
  
  <ul>
  <li>Code has only been edited with my real email in all places that required it. (removed here for security) - full code visible here: <a href="http://css-tricks.com/2866-sending-nice-html-email-with-php/" rel="nofollow">http://css-tricks.com/2866-sending-nice-html-email-with-php/</a></li>
  </ul>
  
  <p>** UPDATE **</p>
  
  <p>Here's what i get in Gmail when i click "Show Original"</p>
  
  <pre><code>Delivered-To: [removed-intentionally]@gmail.com
  Received: by 10.204.157.136 with SMTP id b8cs43947bkx;
      Sun, 14 Aug 2011 22:29:40 -0700 (PDT)
  Received: from mr.google.com ([10.236.77.232])
      by 10.236.77.232 with SMTP id d68mr14702149yhe.74.1313386180151 (num_hops = 1);
      Sun, 14 Aug 2011 22:29:40 -0700 (PDT)
  Received: by 10.236.77.232 with SMTP id d68mr11051146yhe.74.1313386179570;
      Sun, 14 Aug 2011 22:29:39 -0700 (PDT)
  Return-Path: &lt;anonymous@ub002lps00.cbr.the-server.net.au&gt;
  Received: from ironport1-mx.cbr1.mail-filtering.com.au (ironport1-mx.cbr1.mail-filtering.com.au [203.88.115.241])
      by mx.google.com with ESMTP id g70si16130380yhe.152.2011.08.14.22.29.38;
      Sun, 14 Aug 2011 22:29:39 -0700 (PDT)
  Received-SPF: neutral (google.com: 203.88.115.241 is neither permitted nor denied by best guess record for domain of anonymous@ub002lps00.cbr.the-server.net.au) client-ip=203.88.115.241;
  Authentication-Results: mx.google.com; spf=neutral (google.com: 203.88.115.241 is neither permitted nor denied by best guess record for domain of anonymous@ub002lps00.cbr.the-server.net.au) smtp.mail=anonymous@ub002lps00.cbr.the-server.net.au
  X-IronPort-Anti-Spam-Filtered: true
  X-IronPort-Anti-Spam-Result: AqoHAHOuSE5xFATR/2dsb2JhbABBmHOPCHeEEYd0lCyfAIZHBKQJ
  X-IronPort-AV: E=Sophos;i="4.67,372,1309701600"; 
  d="scan'208,217";a="465774510"
  Received: from ub002lps00.cbr.the-server.net.au ([113.20.4.209])
  by ironport1-mta.cbr1.mail-filtering.com.au with ESMTP; 15 Aug 2011 15:29:03 +1000
  Received: (qmail 14705 invoked by uid 10317); 15 Aug 2011 07:29:02 +0200
  Date: 15 Aug 2011 07:29:02 +0200
  Message-ID: &lt;20110815052902.14702.qmail@ub002lps00.cbr.the-server.net.au&gt;
  To: [removed-intentionally]@gmail.com
  Subject: Website Change Reqest
  From: [removed-intentionally]@gmail.com
  Reply-To: [removed-intentionally]@gmail.com
  MIME-Version: 1.0
  
  Content-Type: text/html; charset=ISO-8859-1
  
  &lt;html&gt;&lt;body&gt;&lt;img src="http://css-tricks.com/examples/WebsiteChangeRequestForm/images/wcrf-header.png" alt="Website Change Request" /&gt;&lt;table rules="all" style="border-color: #666;" cellpadding="10"&gt;&lt;tr style='background: #eee;'&gt;&lt;td&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;sd&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Email:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;[removed-intentionally]@gmail.com&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Type of Change:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;Change to Existing Content&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Urgency:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;Super Wicked Urgent&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;URL To Change (main):&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;http://css-tricks.com/2866-sending-nice-html-email-with-php/&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;CURRENT Content:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;fdasgdsfg&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;NEW Content:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;sdfgsdgf&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>