title: PHPmailer sending HTML CODE
body: <p>I am using PHPmailer to send email.</p>
  
  <p>I have also used HTML = True content type</p>
  
  <pre><code>    $mail = new PHPMailer();
  
  $mail-&gt;IsSMTP();                    // send via SMTP
  $mail-&gt;Host     = $Host; 
  $mail-&gt;SMTPAuth = true;             // turn on SMTP authentication
  $mail-&gt;Username = $Username;  
  $mail-&gt;Password = $Password; 
  
  $mail-&gt;From     = $From;
  $mail-&gt;FromName = $FromName;
  
      $mail-&gt;AddAddress($To , $ToName);
  
  $mail-&gt;WordWrap = 50;               // set word wrap
      $mail-&gt;Priority = 1; 
  $mail-&gt;IsHTML(true);  
  $mail-&gt;Subject  =  $Subject;
  $mail-&gt;Body     =  $Body;
  </code></pre>
  
  <p>Once the email is sent i see the actual HTML code instead of the contents please check below</p>
  
  <p><img src="https://i.stack.imgur.com/s7IPc.jpg" alt="enter image description here">  </p>
  
  <p>**Not sure what is the issue **</p>