In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

那年仲夏 提交于 2019-12-04 09:54:12

I have taken these instructions directly from gmail site.

you have to use @gmail.com in your username.

Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587
Account Name:   your full email address (including @gmail.com) 
Google Apps users, please enter username@your_domain.com
Password:   your Gmail password

You need to open 465 on firewall

On CSF firewall you need to add 465 on TCP_OUT =

marspzb

I don't know if this helps, buy I've run with the same problem on my local machine (Windows). For resolving this I had to copy two dlls on the php directory to system32(ssleay.dll and libeay.dll) and unncoment the extension php_openssl.dll on my apache configuration. There might be a similar solution for linux. I suggest you contact the hosting because it's quite possible that you cannot perform this solution on a shared hosting.

Well, I had the same problem for a while, replacing: smtp.gmail.com with 173.194.65.108 actually worked for me!

If you get this constantly without any luck, then check the settings again. I was overlooking my settings and later found the host was wrong.

I used, smtp.google.com

instead of smtp.gmail.com

Too silly, but it happened to me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!