title: PHP mail function is not working in windows
body: <p>My <strong>PHP</strong> code for <code>sending mail</code> is:</p>
  
  <pre><code>$email_to="deepuskmr@gmail.com";
  $email_subject="It works";
  $email_message="Hello. I can send mail!";
  $headers = "From:Dpu\r\n".
  "Reply-To: sdeepu.kmr@gmail.com\r\n'" .
  "X-Mailer: PHP/" . phpversion();
  mail($email_to, $email_subject, $email_message, $headers);  
  echo "mail sent!"
  </code></pre>
  
  <p>But this code not sending email. It gives the error.
  <img src="https://i.stack.imgur.com/aKhKV.png" alt="enter image description here"></p>
  
  <p>My <strong>php.ini</strong> file settings are </p>
  
  <pre><code>[mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP = localhost
  ; http://php.net/smtp-port
  smtp_port = 25
  
  ; For Win32 only.
  ; http://php.net/sendmail-from
  sendmail_from = sdeepu.kmr@gmail.com
  </code></pre>
  
  <p>I am working in <code>localhost</code>. And I am using <code>windows 64</code> machine.</p>