Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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/

View solution in original post

5 Replies

Avatar

Level 10

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. 

Avatar

Level 2
       I checked the templates at the location you are saying, but could not find any matching template.

Avatar

Correct answer by
Level 10

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/

Avatar

Level 2

Thanks much Smac, for your quick replies.

Avatar

Level 7

Hi,

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

Thanks

Tuhin