title: Get XAMPP PHP mail function to work in OS X
body: <p>I'm using XAMPP for Mac, and it seems that the mail function doesn't work. I've tried changing from using sendmail to use SMTP (gmail) without luck. Now my php.ini looks like:</p>
  
  <pre><code>[mail function]
  SMTP = smtp.gmail.com
  smtp_port = 465
  smtp_ssl=auto
  auth_username=[user]@gmail.com
  auth_password=[pass]
  sendmail_from=[user]@gmail.com
  </code></pre>
  
  <p>If I do "tail -f /var/log/mail.log":</p>
  
  <pre><code>Oct 20 18:07:48 mymac postfix/master[17166]: daemon started -- version 2.5.5, configuration /etc/postfix
  Oct 20 18:07:48 mymac postfix/pickup[17168]: 6E89FCA7960: uid=-2 from=&lt;nobody&gt;
  Oct 20 18:07:48 mymac postfix/cleanup[17170]: 6E89FCA7960: message-id=&lt;20101020170748.6E89FCA7960@mymac.lan&gt;
  Oct 20 18:07:48 mymac postfix/pickup[17168]: 736D7CA7961: uid=-2 from=&lt;nobody&gt;
  Oct 20 18:07:48 mymac postfix/cleanup[17170]: 736D7CA7961: message-id=&lt;20101020170748.736D7CA7961@mymac.lan&gt;
  Oct 20 18:07:48 mymac postfix/qmgr[17169]: 6E89FCA7960: from=&lt;nobody@mymac.lan&gt;, size=310, nrcpt=1 (queue active)
  Oct 20 18:07:48 mymac postfix/qmgr[17169]: 736D7CA7961: from=&lt;nobody@mymac.lan&gt;, size=417, nrcpt=1 (queue active)
  Oct 20 18:08:19 mymac postfix/smtp[17174]: connect to ASPMX.L.GOOGLE.com[209.85.227.27]:25: Operation timed out
  Oct 20 18:08:19 mymac postfix/smtp[17176]: connect to ASPMX.L.GOOGLE.com[209.85.229.27]:25: Operation timed out
  </code></pre>
  
  <p>Anyone managed to get the PHP mail() function to work in XAMPP for Mac? I don't care SMTP, sendmail, whatever. Running out of ideas...</p>