How does JavaMail deal with queuing mail when the initial attempt fails?

John Zukowski

It doesn't. A javax.mail.MessagingException will be thrown if there is a failure in sending the message. It is your responsibility to try to recover. The MessagingException class maintains a linked list of exceptions that caused the problem, as there may be more than one. You get each one by following the return of getNextException().

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact