Triggered email - passing a variable with HTML code and rendering it

Question:
Hello, I want to create a triggered email where the body of the message is passed as a variable, containing HTML code for rendering.

At execution, the variable is display as a pure text and not rendered according to HTML tags. I passed the variable in an HTML box, and not as a text box, but even so, it is not rendered.

Any idea on how to solve this?

Product:
WIX Triggered emails

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]

What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

Additional information:

To render dynamic HTML content in triggered emails, you need to work within the constraints of the email system, which prioritizes security and plain text for variables. Instead of passing raw HTML, design your email structure in a pre-defined template where placeholders are used for dynamic content. Populate these placeholders with sanitized text variables at runtime. If rendering HTML dynamically is essential, consider leveraging an external email service that supports raw HTML rendering and integrate it with your system to send the emails. This ensures flexibility while maintaining compatibility and security.

As far as I know, Wix Triggered Emails do not allow you to pass HTML directly, but instead allow you to customize pre-designed templates with dynamic variables.

However, if you want to deliver a custom HTML email directly, then I’d suggest that you look into third party email providers such as SendGrid or Resend which allow custom HTML in the emails that you send.