title: How to configure a server to send email using cPanel?
body: <p>I am trying to send email using php. The mail is returning true. But I am receiving the email. So I am guessing that maybe there is some problem with the server. Is there any tutorial explaining how to configure the server to properly send email using cPanel?</p>
  
  <p>My code is given below.</p>
  
  <pre><code>&lt;?php
  
      $msg = "First line of text\nSecond line of text";
      $msg = wordwrap($msg,70);
      $headers = "From: test1@islamerkotha.com";
      mail("erfan.bashar.13@gmail.com", "My subject", $msg, $headers);
  </code></pre>