This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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: 19851

One of the JavaMail SMTP properties controls this. Here's a link to the documentation for all of those properties (scroll down):
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
Don't get me started about those stupid light bulbs.
subject: javamail-EmailException
It's not a secret anymore!