XAMPP Sendmail using Gmail account

This is how I did it:

Okay, today, the best answer did not work for me. But, this did:

in sendmail.ini:

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=****@gmail.com
auth_password=*******
force_sender=****@gmail.com

in php.ini:

[mail function]
sendmail_path = ""C:xamppsendmailsendmail.exe" -t"

Based on port @: http://support.google.com/mail/bin/answer.py?hl=en&answer=13287

@http://stackoverflow.com/a/11020314/1436129

Leave a Reply