title: Failed to send HTML mails using PHP mail()
body: <p>Strange things happening to me. I'm trying to send a HTML mail, using the php <code>mail()</code> function, but no luck here. Even when I copy/paste a piece of code literally, it doesn't work. What am I doing wrong? Here is the piece of code I use:</p>
  
  <pre><code>        $message = "&lt;html&gt;&lt;body&gt;";
          $message .= "&lt;table rules='all' style='border-color: #666;' cellpadding='10'&gt;";
          $message .= "&lt;tr style='background: #eee;'&gt;&lt;td&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;/td&gt;&lt;/tr&gt;";
          $message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Email:&lt;/strong&gt; &lt;/td&gt;&lt;/tr&gt;";
          $message .= "&lt;/table&gt;";
          $message .= "&lt;/body&gt;&lt;/html&gt;";       
  
          $to = 'me@gmail.com';
  
          $subject = 'Website Change Reqest';
  
          $headers = "From: " . $email . "\r\n";
          $headers .= "Reply-To: ". $email . "\r\n";
          $headers .= "MIME-Version: 1.0\r\n";
          $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
  
          if (mail($to, $subject, $message, $headers)) {
            echo 'Your message has been sent.';
          } else {
            echo 'There was a problem sending the email.';
          }
  </code></pre>
  
  <p>And this is what my e-mail looks like...:</p>
  
  <pre><code>Reply-To: me@gmail.com
  
  MIME-Version: 1.0
  
  Content-Type: text/html; charset=ISO-8859-1
  Message-Id: &lt;20110703234551.A9D6153DAB@apache10.hostbasket.com&gt;
  Date: Mon, 4 Jul 2011 01:45:51 +0200 (CEST)
  
  &lt;html&gt;&lt;body&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;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Email:&lt;/strong&gt; &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;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Urgency:&lt;/strong&gt; &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;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;NEW Content:&lt;/strong&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>What do I do wrong?</p>