Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ignoring email sending failure in JavaMail.

 
Vicki Amin
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a program which generates certain emails. The mailing list is picked up from a prop file. The problem is that if any of the mail recepients is not present in the LDAP server's address book; the program fails and the mails are not sent to ANY of the mail receipients.

I want the emails to be sent irrespective of any failed emails. Is there a way I can do this? Any idea's ?
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find the JavaMail API documentation. Go to the main page. Scroll down to the very end. You will see a link whose text is "com.sun.mail.smtp". Click that link. Scroll down to the very end and read about the "mail.smtp.sendpartial" property.
 
Vicki Amin
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks... it works..
 
Always! Wait. Never. Shut up. Look at this tiny ad.
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!