title: How to send a email using php from local host
body: <p>Hi I need to send email using php. But when I am trying to send a simple email,it is not being sent.What could be the reason? Should I include any header or any permissions?Please help me.
  Here is my code.</p>
  
  <pre><code>&lt;?php
  $to='jyothi.jish@gmail.com';
  $message='hai';
  mail($to, 'My Subject', $message);
  ?&gt;
  </code></pre>
  
  <p>Even this small message is not being sent.Can anyone guess what could be the reason?</p>