title: Send mail from a local apache server
body: <p>I want to send emails from my PHP web app. I know that it is possible because a couple of months ago, I had this "feature" on my system, then I started to use xampp and the feature disappeared.</p>
  
  <p>I thought that when I come back to my local server and will use a local MySQL database and stuff like I used to before, I could send emails from my web apps again.</p>
  
  <p>I updated my operating system from Mountain Lion to Mavericks (no idea whether this could be the main issue) and went back to local apache server also removing xampp. But I still can't send emails from my web app.</p>
  
  <p>I changed the php.ini file that is in use so I can use the mail feature:</p>
  
     <pre class="lang-none prettyprint-override"><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 = me@example.com
  
  ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  ; http://php.net/sendmail-path
  sendmail_path = "/usr/sbin/sendmail -t -i"
  </code></pre>