AEM Form component's Action Type 'Mail' customization. | Community
Skip to main content
pavanb46130733
Level 2
May 10, 2016
Solved

AEM Form component's Action Type 'Mail' customization.

Hi All,

I am developing a contact-us page using AEM form component, i am setting the Action Type to 'Mail' action.

Mail is getting triggered once the contact-us form is submitted,  is there any way i can edit the Template of the mail which is being sent. 

If yes, where exactly the template is located in JCR, so that i can customize this template as per our requirement.

Thanks in advance.

--

Regards,

Pavan Bukka.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 10, 2016

See this Community Artilce - it will point you in the right direction:

http://labs.6dglobal.com/blog/2012-08-20/sending-email-adobe-cq-api/

5 replies

Tuhin_Ghosh
Level 8
May 11, 2016

Hi,

If Scott have already answered your question, then please close this issue.

Thanks

Tuhin

Translate
pavanb46130733
Level 2
May 11, 2016

Thanks much Smac, for your quick replies.

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 10, 2016

See this Community Artilce - it will point you in the right direction:

http://labs.6dglobal.com/blog/2012-08-20/sending-email-adobe-cq-api/

Translate
pavanb46130733
Level 2
May 10, 2016
       I checked the templates at the location you are saying, but could not find any matching template.
Translate
smacdonald2008
Level 10
May 10, 2016

Email templates are simply nodes in the JCR. Here is a AEM doc topic that may help:

https://docs.adobe.com/docs/en/aem/6-1/administer/operations/notification.html

Seems templates are located under: 

/etc/notification/email

We do not have a step by step community article on this use case - otherwise- i would reference that.

Another option you can take (i have used this approach wihtin AEM) is to submit to a custom sling servlet using a POST and build your own template using Java code. 

Translate