title: php html mail not working on cpanel server
body: <p>I have a code to send html mail with php on cpanel but doesn't send without any errors. I have tested plain text mail and that is working fine, but once I add the header like below, it doesn't work.</p>
  
  <pre><code>//send html mail
  ini_set('sendmail_from', 'info@toludimaokojie.com');
              $headers = "From: info@toludimaokojie.com\r\n"."X-Mailer: php";
              $headers .= "Content-type: text/html\r\n";
          $html = '&lt;html&gt; 
     &lt;body&gt;
    &lt;h2&gt;Result Analysis for Test With Reference Number:'.$reference.'&lt;/h2&gt;
    &lt;br/&gt;
    &lt;p&gt;&lt;b&gt;Personality: '.$personality_mail.'&lt;/b&gt;&lt;/p&gt;
    &lt;br/&gt;
    &lt;p&gt;&lt;b&gt;MBQ Score: '.$resultTotal.'&lt;/b&gt;&lt;/p&gt;
    &lt;br/&gt;
    &lt;ul&gt;'.$analyseData.'&lt;/ul&gt;
    &lt;pre&gt;Mail Sent on '.date("l, F Y H:i:sa").'&lt;/pre&gt;
    &lt;/body&gt;
    &lt;/html&gt;';                          
    mail("olaegbesamuel@gmail.com", "MBQ TEST ANALYSIS", $html, $headers);
  </code></pre>
  
  <p>This doesn't work. Please help, i guess am doing everything correctly here. I have tested without html and confirmed that <code>mail</code> is working</p>