Reputation: 2282
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
[email protected]
auth_password=*password*
[email protected]
[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.
Upvotes: 0
Views: 327
Reputation: 458
i am assuming you are trying to send a mail through local host
i suggest you should use PHP mailer class
Upvotes: 1