aspose file tools
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

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

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: 662

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: 19897

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
I agree. Here's the link:
subject: Mail program timing out to