[Minor] Send mails async
This commit is contained in:
parent
17fb2a1f43
commit
779a79631b
|
@ -72,7 +72,7 @@ public class PlcPostInitializer extends SimplePostInitializer {
|
|||
+ "\tYour Server.";
|
||||
|
||||
try {
|
||||
getContainer().getComponent(MailHandler.class).sendMail(subject, body, recipients);
|
||||
getContainer().getComponent(MailHandler.class).sendMailAsync(subject, body, recipients);
|
||||
} catch (Exception e) {
|
||||
logger.error("Notifying of server startup failed: " + ExceptionHelper.getRootCause(e), e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue