Question
com.day.cq.mailer.MailingException: Invalid mail service configuration.
Hi,
We are using the MessageGatewayService to send custom email notifications within a workflow. I've configured the SMTP details correctly and verified them in the Day CQ Mail Service configuration in ConfigMgr. However, I encounter an "Invalid mail service configuration" error when sending emails.
While debugging the code, I noticed that all values are null within MessageGateway<HtmlEmail> messageGateway = messageGatewayService.getGateway(HtmlEmail.class);.The issue resolves when I restart the instance or stop and start the "Day Communique 5 Mailer" bundle (com.day.cq.cq-mailer).
We are using AEM 6.5 with Service Pack 6.5.17.
Any help is greatly appreciated.
Caused by: com.day.cq.mailer.MailingException: Invalid mail service configuration.
at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:300) [com.day.cq.cq-mailer:5.14.3.B0006]
at com.day.cq.mailer.impl.DefaultMailService.send(DefaultMailService.java:50) [com.day.cq.cq-mailer:5.14.3.B0006]