Forums Register Login

Mail program timing out to smtp.gmail.com

+Pie Number of slices to send: Send
Is it possible to update this code snippet, in order to reflect the authentication required by Gmail. When I run this program using smtp.gmail.com as an SMTP server, an error is reading java.net.ConnectException



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.
1
+Pie Number of slices to send: Send
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.
Something about .... going for a swim. With this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1478 times.
Similar Threads
Table cells not editable
GridBagLayout
How do I pass a frame into another class?
GridBagLayout
DecimalFormat error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:33:19.