You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the code to update and send is run asynchronously, you would have to use the completion handlers to know when the email was actually updated and set. These is currently only available from the method mailer.send(email, true):
bbottema
changed the title
Receiving messageID (.getId()) when using .async()?
Also return AsyncResponse from plain Mailer.sendEmail(singleArgument) as async can be configured through MailerBuilder now
Dec 26, 2021
I've just released 6.7.5 which now returns AsyncResponse from mailer.sendMail(singleArgument). That should make it easier for you to handle the async exeution.
According https://www.simplejavamail.org/features.html#section-sent-id it is possible to receive the generated messageId by:
But how is it possible to receive the messageId when using
.async()
?When using
.async()
, theemail.getId();
isnull
.Thank you!
The text was updated successfully, but these errors were encountered: