Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SMTP authentication with Java Mail API

843830Jan 13 2003 — edited Feb 25 2010
When 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2010
Added on Jan 13 2003
23 comments
8,478 views