Skip to main content
Level 2
November 6, 2023

AEM Forms Submission HTML tags in Email template

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

7 replies

Vijay_Katoch
Community Advisor
Community Advisor
November 7, 2023
try this:



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

 

Translate
Rohan0794Author
Level 2
November 7, 2023

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



Translate
kautuk_sahni
Adobe Employee
Adobe Employee
November 9, 2023

@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.

Translate
Kautuk Sahni
Rohan0794Author
Level 2
November 9, 2023

Hi Kautuk,

The above replies didn't help.

Translate
Adobe Employee
December 4, 2023

Looks like it may not be supported

Translate