Thursday, November 19, 2009

Testing if gmail SMTP is blocked

Many times in the applications I program there is a requirement of sending an automatic email. I prefer to create a new GMAIL account to send the emails. In some organization is blocked. Here is a simple test to check if it is going to work:

Telnet 587

If you get the message : "Connecting To not open connection to the host, on port 587: Connect failed"
Then its blocked.

If you get something like : "220 ...."
It is going to work.