title: php.ini, sendmail configuration to send an email using a php script
body: <p>I need some help.  I am trying to send an email from a php script.  My environment comprises of the following:</p>
  <blockquote>
  <p>Operating System: Windows 8</p>
  <p>XAMPP version: 1.8.2</p>
  <p>php version:  5.4.19</p>
  </blockquote>
  <p>I have the following php script:</p>
  <pre><code>&lt;?php
  mail('sugar.donkey@gmail.com','Helo','This is a test','From:salt@goodness.com');
  ?&gt;
  </code></pre>
  <p>The following configuration on send mail configuration file:</p>
  <pre><code>smtp_server=smtp.gmail.com
  
  ; smtp port (normally 25)
  
  smtp_port=465
  
  auth_username=sugar.donkey+gmail.com
  auth_password=[MYPASSWORDHERE]
  </code></pre>
  <p>The configurations on php.ini:</p>
  <pre><code>[mail function]
  ; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
  
  ; SMTP = smtp.gmail.com
  
  ; smtp_port = 465
  
  ; For Win32 only.
  ; http://php.net/sendmail-from
  ;sendmail_from = postmaster@localhost
  </code></pre>
  <p>I dont get error when I run the php script, but I also dont seem to receive an email.  Where am I going wrong ?</p>