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