Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to connect to smtp server of gmail. Why?

Tags:

smtp

gmail

telnet

I am trying to connect to a smtp server of gmail using

telnet gmail.smtp.com 587

It gets connnected when I try it from home. But, it shows an error when I try it from my office. What can be the problem?

Here is the error I get connecting to smtp.gmail.com:

Could not open connection to the host, on port 587: Connect Failed
like image 744
Vikas Mangal Avatar asked Feb 28 '14 04:02

Vikas Mangal


2 Answers

Since you are able to connect at home, your office is probably blocking the port using a firewall. To be sure though, you could try on another network.

like image 162
T3KBAU5 Avatar answered Sep 18 '22 08:09

T3KBAU5


Your hostname should be - smtp.gmail.com You wrote - gmail.smtp.com

Please change the name

like image 26
Nayan Avatar answered Sep 19 '22 08:09

Nayan