AEM Forms Submission HTML tags in Email template | Community
Skip to main content
Level 2
November 6, 2023

AEM Forms Submission HTML tags in Email template

  • November 6, 2023
  • 2 replies
  • 1261 views

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.

2 replies

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



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

 

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.



kautuk_sahni
Community Manager
Community Manager
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.

Kautuk Sahni
Rohan0794Author
Level 2
November 9, 2023

Hi Kautuk,

The above replies didn't help.

Adobe Employee
December 4, 2023

Looks like it may not be supported