title: Add HTML formatting in phpmailer
body: <p>I am using PHP mailer to send an online form directly to email.  I want to edit the form like this:</p>
  
  <pre><code>$message = '&lt;p&gt;The following request was sent from: '&lt;/p&gt;;
  $message .= '&lt;p&gt;Name: '.$name.'&lt;/p&gt;&lt;br /&gt;';
  $message .= '&lt;p&gt;Phone: '.$phone.'&lt;/p&gt;&lt;br /&gt;';
  $message .= '&lt;p&gt;Email: '.$email.'&lt;/p&gt;&lt;br /&gt;';
  </code></pre>
  
  <p>However, in the email I receive back, I get the <code>&lt;p&gt;</code>, <code>&lt;br /&gt;</code>, etc.  Not the formatting I want, but the actual HTML.  It has always worked for me, then I realized I was using the stock PHP mail function.  not sure if PHP mailer has different parameters OR if I just missing small here?</p>
  
  <p><strong>Where would I set the headers for text/html?</strong></p>
  
  <pre><code>    $mail = new PHPMailer();
      $mail -&gt; IsSMTP();
      $mail -&gt; Host = "---";
      $mail -&gt; Port = 25;
      $mail -&gt; SMTPAuth = false;
      $mail -&gt; Username = EMAIL_USER;
      $mail -&gt; Password = EMAIL_PASS;
      $mail -&gt; FromName = $from_name;
      $mail -&gt; From = $from;
      $mail -&gt; Subject = $subject;
      $mail -&gt; Body = $message;
      $mail -&gt; AddAddress("---");
  
      $result = $mail -&gt; Send();
  </code></pre>