ACS commons 5.3.0 Email service not working with AEM 6.5
Hi All,
We are trying to upgrade our acs-commons package from 4.3.2 to 5.3.0 for our AEM6.5 instance. All environments are managed by Adobe managed services. In testing, most of the things worked fine except the email service for one of our projects. It throws this error:
Mail template path [ " + templatePath + " ] could not resolve to a valid template
I can see that it is coming from this class
com.adobe.acs.commons.email.impl.EmailServiceImpl
If I downgrade to the previous package it starts working again. It should use acs-commons-email-service but when I tried to print the user to see what is happening, it says anonymous user.
I have checked acs-commons-email-service and even anonymous/everyone has access to the email template path which is
/apps/settings/notification-templates/email/default/XXX/YYY.txt
This email we are trying to send from a
SlingAllMethodsServlet
But in another project which uses
SendTemplatedEmailProcess
which internally uses same email service, we do not have any issue and emails are going fine.
Please help if someone upgraded to 5.3.0 on AEM 6.5.
Thanks