title: PHP mail is not working in my web server
body: <p>I am using first time mail function in php i get a code from online and it implemented to my program but its not working. Can any please help me to correct this ?      </p>
  
  <pre><code>  &lt;?php
       $to = "ganesh.sunraise@gmail.com";
       $subject = "This is subject";
  
       $message = "&lt;b&gt;This is HTML message.&lt;/b&gt;";
       $message .= "&lt;h1&gt;This is headline.&lt;/h1&gt;";
  
       $header = "From:lokesh.sunraise111@gmail.com ";
  
       $retval = mail ($to,$subject,$message,$header);
  
       if( $retval == true ) {
          echo "Message sent successfully...";
       }else {
          echo "Message could not be sent...";
       }
    ?&gt;
  </code></pre>