Hi Team,
I want to create email templates in AEM under /etc/notification/email folder in crx, But i want to create them from code base, in which folder of the project should create them ? i can't see /etc folder in maven project. Please help.
Solved! Go to Solution.
@Prashanth_02a go to ui.apps/src/main/content/META-INF/vault/filter.xml
and Inside filter.xml
add the following entry and save it.
<filter root="/etc/notification/email" mode=""/>
now you can import your email templates from CRXde
@Prashanth_02a go to ui.apps/src/main/content/META-INF/vault/filter.xml
and Inside filter.xml
add the following entry and save it.
<filter root="/etc/notification/email" mode=""/>
now you can import your email templates from CRXde
@Prashanth_02a Did you find the suggestion from @Suraj_Kamdi helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
You need to do two steps here to manage the email templates via code
1) Create your "email-template.html" under "/etc/notification/email" folder structure. If the folder structure is not present in the maven project, please create the folder structure under the "ui.apps" maven module in parallel with "/apps" folder (sibling to /apps folder).
2) As @Suraj_Kamdi mentioned, create an entry in the ui.apps module filter.xml to allow the "/etc/notification/email" path to be added in the AEM during the code deploment.
Views
Likes
Replies