title: How to send mail from my mac using local xampp with php contacts form
body: <p>i have xampp 7.1 installed on my 2016 macbook pro. I have a php contacts form in my source folder which is rendered successfully by chrome along with my html. However, I need to configure the smtp settings to test some functionality locally from my mac.</p>
  
  <p>I found a php.ini in the xampp etc folder that contains some mail function. 
  <img src="https://i.stack.imgur.com/WZQG0.png" alt="php.ini mail function screenshot"></p>
  
  <p>I found other articles which reference phpmailer but since they were a few years old i figured newer versions of xampp for mac may have all the functionality builtin. </p>
  
  <p>Can I modify this php.ini file to use a gmail mailbox as a recipient? How so?</p>
  
  <p>thanks in advance</p>
  
  <p>Here is a copy paste of the mail function :</p>
  
  <pre><code>[mail function]
  ; For Win32 only.
  ; http://php.net/smtp
  SMTP=smtp.gmail.com
  ; 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 =
  
  ; Force the addition of the specified parameters to be passed as extra 
  parameters
  ; to the sendmail binary. These parameters will always replace the 
  value of
  ; the 5th parameter to mail(), even in safe mode.
  ;mail.force_extra_parameters =
  
  ; Add X-PHP-Originating-Script: that will include uid of the script 
  followed by the filename
  mail.add_x_header=On
  
  ; Log all mail() calls including the full path of the script, line #, 
  to address and headers
  ;mail.log =
  </code></pre>
  
  <hr>