title: Why does my PHP to SMTP mailing script not work?
body: <p>I have a local instance of sendmail running on my machine, and am using a php script in order to send custom messages in order to run an internal anonymous suggestions application.
  I currently use the following script:</p>
  
  <pre><code>&lt;?php
  $to      = '*to*';
  $subject = '*subject*';
  $message = '*message*';
  $headers = 'From: *from*' . "\r\n" .
      'Reply-To: *replyto*' . "\r\n" .
      'X-Mailer: PHP/' . phpversion();
  
  mail($to, $subject, $message, $headers);
  ?&gt;
  </code></pre>
  
  <p>I would like to be able to support HTML, which I would assume was the following:</p>
  
  <pre><code>&lt;?php
  $to      = '*to*';
  $subject = '*subject*';
  $message = '&lt;html&gt;&lt;a href="www.google.com"&gt;here&lt;/a&gt;&lt;/html&gt;';
  $headers = 'From: *from*' . "\r\n";
  $headers .= 'MIME-Version: 1.0' . "\r\n";
  $headers .= 'Contesnt-type:text/html;charset=UTF-8' . "\r\n";
  $headers .= 'Reply-To: *replyto*' . "\r\n";
  
  mail($to, $subject, $message, $headers);
  ?&gt; 
  </code></pre>