SMTP authentication with Java Mail API
843830Jan 13 2003 — edited Feb 25 2010When I send mail with a sample Java mail client code, it works fine if the mail is to be delivered locally (to an account on the mail server itself), but SendFailedException occurs if the mail is addressed to someone not on the mail server.
I believe it is an issue of SMTP authentication.
How do I code for SMTP authentication with Java Mail API?
Thanks!