Expand my Community achievements bar.

AEM Forms Submission HTML tags in Email template

Avatar

Level 2

Hello Community,

Adding HTML tags to Email template box on Form Submission (submit action = Send email) returns the tags as text and doesn't render the styles in the email.

Example:

<div style="color: blue;">

Hello ${firstName} ${lastName}
</div>

How do we put HTML tags and render them appropriately in the email?

7 Replies

Avatar

Community Advisor
try this:



<span style="color:Red;">
Hello ${firstName} ${lastName}
</span>

 

Avatar

Level 2

It doesn't work. The email received shows HTML tags instead of rendering styles. Please see the attached screenshots.



Avatar

Level 2

This article doesn't say how to render HTML tags. Need an appropriate response with respect to my question.

Avatar

Administrator

@Rohan0794 Did you find the suggestions from users 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.



Kautuk Sahni