Failed to connect to the mail server on the port "mail.google.com" 587, check the settings "SMTP" and "smtp_port" in php.ini or use ini_set()
I configured my php.ini xppp file and sendmail.ini to use my Gmail account to send email from my PHP script. I am using xampp. after changing the [mail function] function of my php.ini it looks like this (I just deleted the outlined contours for simplicity)
[mail function] SMTP = mail.google.com smtp_port = 587 mail.add_x_header = Off
and my sendmail.ini file looks like this:
[sendmail] smtp_server=mail.google.com smtp_port=587 smtp_ssl=auto error_logfile=error.log auth_username=babar+gmail.com auth_password=**********
So what did I miss? Why am I getting this error?
php xampp gmail
buet_baba Jul 17 '13 at 12:19 2013-07-17 12:19
source share