Home » Archive

Articles tagged with: javax mail

Java/J2ee & open source »

[6 Nov 2009 by Keshav Shetty | One Comment | 4,794 views]

In java and j2ee we often send emails from our applications, Many times we get SendFailedException because few of the recipient email address are invalid which causes email delivery failure for even the valid recipient email address.
In order to bypass this exception and deliver the emails for valid email addresses, we can add following settings or enable properties so that whole email not rejected.
props.setProperty(“mail.smtp.sendpartial”, “true”);
or
props.put(“mail.smtp.sendpartial”,true);
In case if you still get this issue, then you need to check your server settings.
Also you can catch SendFailedException and find out valid unsent address …