Skip to main content
pavanb46130733
Level 2
May 10, 2016 11:13 AM UTC
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 4:59 PM UTC

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

smacdonald2008
Level 10
May 10, 2016 1:38 PM UTC

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
pavanb46130733
Level 2
May 10, 2016 4:19 PM UTC
       I checked the templates at the location you are saying, but could not find any matching template.
Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
May 10, 2016 4:59 PM UTC

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 11, 2016 5:39 AM UTC

Thanks much Smac, for your quick replies.

Translate
Tuhin_Ghosh
Level 8
May 11, 2016 11:49 AM UTC

Hi,

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

Thanks

Tuhin

Translate