title: Configure Gmail as SMTP in Xampp to send mail -Got Error.Why?
body: <p>I am following <a href="http://fordflux.com/blog/how-to/php-sendmail-and-xampp-on-windows/" rel="nofollow">this</a> instruction and I got the same error like a first user comment.And I dont know how to fix this error.</p>
  
  <p>Short notes what I did.</p>
  
  <p>1.Change the sendmail.ini and php.ini settings for sending mail<br/>
   2.Put the dlls on the send mail folder<br/>
   3.Put my username and password from my gmail account</p>
  
  <pre><code>smtp_server=smtp.gmail.com
  smtp_port=465
  
  
  ; SMTPS (SSL) support
  ; auto = use SSL for port 465, otherwise try to use TLS
  ; ssl = alway use SSL
  ; tls = always use TLS
  ; none = never try to use SSL
  ;smtp_ssl=auto
  smtp_ssl=tls
  default_domain=brettshaffer.com
  error_logfile=error.log
  </code></pre>
  
  <p>Tried both tsl and ssl same error.Error is below.</p>
  
  <pre><code>10/12/07 18:03:36 : Connection Closed Gracefully.
  </code></pre>
  
  <p>Updated</p>
  
  <pre><code>auth_username=myname@gmail.com
  auth_password=mypassword
  </code></pre>
  
  <p>I already put there and also I put two ssl dlls for that SSL connection </p>
  
  <pre><code>libeay32.dll
  ssleay32.dll
  </code></pre>