Ive been trying desperately all day to get an email sent from a php file running on xampp from a gmail account.
I want to use Gmails SMTP as I tried forever to get Mercury to work and it was very problematic. So far I set it up as described below:
[sendmail]
smtp_server=smtp.gmail.com
smtp_port=25
smtp_ssl=auto
auth_username=justinharr6@gmail.com
auth_password=*password*
force_sender=justinharr@gmail.com
[mail function]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
mail.add_x_header = Off
(everything else commented out)
Keep in mind this is one of many configurations I have tried none of which work. My php files is returning true from the Mail call but its never getting to the destination. Any help would be greatly appreciated.
i am assuming you are trying to send a mail through local host
i suggest you should use PHP mailer class