wood burning stoves 2.0
The moose likes Other JSE/JEE APIs and the fly likes javamail-EmailException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "javamail-EmailException" Watch "javamail-EmailException" New topic


Madhavi Subramaniam
Ranch Hand

Joined: Nov 24, 2011
Posts: 33

I'm sending message to some group of email addresses by using Transpot.send() API.

The TO email address list have one invalid address,but other addresses are valid.

Because of one invalid email address, other recipients also not getting the mails and I'm getting javax.mail.SendFailedException also.

How to handle this problem. Please suggest some solution for this.


Paul Clapham

Joined: Oct 14, 2005
Posts: 19111

One of the JavaMail SMTP properties controls this. Here's a link to the documentation for all of those properties (scroll down): http://javamail.kenai.com/nonav/javadocs/com/sun/mail/smtp/package-summary.html.
Madhavi Subramaniam
Ranch Hand

Joined: Nov 24, 2011
Posts: 33
Thanks paul... Thanks a lot...

set true to the property mail.smtp.sendpartial is the solution for this problem.

Thanks for your help
It is sorta covered in the JavaRanch Style Guide.
subject: javamail-EmailException