Question
"cannot connect to smtp.gmail.com, port 587: Connection timed out"
Hi,
I tried this tutorial in order to enabling the email sending facility to the website which is on Droplets.
This worked fine in localhost and email sent/received very quickeley but it doesn’t work in Droplet.:(
This is the error message (when- tail /var/log/msmtp.log)
Jul 25 06:39:08 host=smtp.gmail.com tls=on auth=on user=aleem.firnas22gmail.com from=aleem.firnas22@gmail.com recipients=aleem.firnas22@gmail.com errormsg=‘cannot connect to smtp.gmail.com, port 587: Connection timed out’ exitcode=EX_TEMPFAIL
Please help me :(
Thanks.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Hi , this is the tutorial link I followed, forget to put the link in question.
https://www.digitalocean.com/community/tutorials/how-to-use-gmail-or-yahoo-with-php-mail-function
Thanks