title: sending an email using localhost with MAMP
body: <p>so basically I am trying to send an email over local host and the program I am using is MAMP. I have looked this up online and done everything written however, this still won't work. My Apache port is set to : 8888 my SQL port is set to: 3306 The function I have entered as php file to send emails is the one below:</p>
  
  <pre><code>mail(
       $admin_email, $messaage,
       'Works!',
       'An email has been generated from your localhost, congratulations!');
  </code></pre>
  
  <p>furthermore, I have filled out all the send mail value as shown below:</p>
  
  <pre><code>smtp_server=smtp.gmail.com
  ; smtp port (normally 25)
  
  smtp_port=25
  smtp_ssl=ssl
  auth_username=my_email@gmail.com
  auth_password=*******
  
  hostname=localhost
  </code></pre>
  
  <p>Obviously - my email and password are filled out using my email and password. also i have altered the php.ini file as shown:</p>
  
  <pre><code>; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  ;http://php.net/sendmail-path
  sendmail_path = C:\Windows\System32\sendmail\ -t -i -f   my_email@gmail.com
  </code></pre>
  
  <p>Can someone tell me where my error is ? any help is much appreciated :)</p>