title: how to modify xampp to send mails using php?
body: <p>this is my code for sending mail through xampp i have modified the php.ini and sendmail.ini from the xampp . Upon running the php i'm not getting email. Please help me .</p>
  
  <p>php.ini</p>
  
  <pre><code>[mail function]
  
   SMTP =smtp.gmail.com &lt;br&gt;
   smtp_port =587
  
  ; For Win32 only.
  
   ;sendmail_from =email@gmail.com
  
  sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
  </code></pre>
  
  <p>sendmail.ini </p>
  
  <pre><code>smtp_server=smtp.gmail.com
  
  ; smtp port (normally 25)
  
  smtp_port=587
  
  auth_username=email@gmail.com &lt;br&gt;
  auth_password=password &lt;br&gt;
  force_sender=email@gmail.com
  </code></pre>
  
  <p><b>The php code used for sending email is this</b></p>
  
  <pre><code>mail("garvit.j742@gmail.com","subject","this is the mail","From:     email@gmail.com");
  </code></pre>
  
  <p><br>
  this is my code for php. Tell me the errors ??</p>