title: wordpress wp_mail is sending my html message as a text attachment
body: <p>This is the code to send the mail:</p>
  
  <pre><code>$to = $_POST['leadEmail'];
  $subject = "my subject";
  $message = ( $_POST['leadEmailPref'] == "html" ) ? $messageh : $messagep ;
  $headers[] = "From: My Name &lt;ny_name@gmail.com&gt;";
  $headers[] = "Content-type: ".$_POST['leadEmailPref'] ;
  
  wp_mail( $to, $subject, $message, $headers );
  </code></pre>
  
  <p>When I go to my inbox, the message is sent as an attachment and I don't see the message. Obviously I don't want the attachment, and I want the person who receives the email to see the message immediately.</p>