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 ?
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.