Is Javamail asynchronous or synchronous?

Is Javamail asynchronous or synchronous? That is, if I send an email, will I continue processing immediately after that, or wait for completion?

Also, are there any ways I could catch that for some reason the email could not be sent?

I would also like to know these answers for Spring MailSender abstraction.

Thank.

+5
source share
1 answer

, . send docs . SendFailedException MessagingException,   . " , , ".

+5

All Articles