This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Mail program timing out to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Mail program timing out to" Watch "Mail program timing out to" New topic

Mail program timing out to

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 660

Is it possible to update this code snippet, in order to reflect the authentication required by Gmail. When I run this program using as an SMTP server, an error is reading

Source Core Java Volume 2 (7th Edition)

Related links
1. Configuring other email clients (Gmail).
2. RFC 2183, updated by RFC 2184, and, RFC 2231.

Rob Spoor

Joined: Oct 27, 2005
Posts: 19697

Don't manually connect to an SMTP server, but use JavaMail instead. It's designed for this kind of thing, and if you search a bit you'll find plenty of examples about getting JavaMail to connect to Google.

How To Ask Questions How To Answer Questions
GeeCON Prague 2014
subject: Mail program timing out to