This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes SMTP Connecting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "SMTP Connecting" Watch "SMTP Connecting" New topic

SMTP Connecting

S Hayes

Joined: Jun 13, 2006
Posts: 6
Using the code below, I can't connect to any MX servers that I find with nsloookup -type=MX. I don't think the ports are blocked though, since I can use Thunderbird with my Gmail account. Any suggestions?
Van Glass
Ranch Hand

Joined: Nov 18, 2000
Posts: 110
Gmail uses a secure SSL POP/SMTP connections that aren't blocked by ISP's. It may be that your ISP is only allowing you connections to it's own SMTP server and no others ... this is to prevent spam.

To verify try connecting manually to one of the MX hosts using telnet command:


telnet hostname 25

If you get a response your ok. Otherwise your ISP is blocking you.
wood burning stoves
subject: SMTP Connecting
It's not a secret anymore!