# Insert HTML through api variable in email

**URL:** <https://forum.mautic.org/t/insert-html-through-api-variable-in-email/27088>\
**Category:** Product Support\
**Created:** [February 19, 2023, 5:28pm UTC](https://forum.mautic.org/t/insert-html-through-api-variable-in-email/27088 "2023-02-19T17:28:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruben123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ruben123/32/9240_2.png) [@ruben123](https://forum.mautic.org/u/ruben123)\
**Post date:** [February 19, 2023, 5:28pm UTC](https://forum.mautic.org/t/insert-html-through-api-variable-in-email/27088/1 "2023-02-19T17:28:31Z")

</div>

Hi,

When triggering an email with the api i use {my\_api\_field} to show the tokens sent through the api.  
This works perfect, but when i send HTML (a table) in such token, the HTML code is just shown plain in the email.

How can i make the HTML being rendered in the email?

Thanks!

Ruben

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [February 21, 2023, 9:48am UTC](https://forum.mautic.org/t/insert-html-through-api-variable-in-email/27088/2 "2023-02-21T09:48:21Z")

</div>

You have to use builder, it does this.

In order to make the email look good in every browser, you shoult use MJML not HTML.

You can write MJML code in this format , it is a little bit different from html.

[https://documentation.mjml.io/#mj-body 90](https://documentation.mjml.io/#mj-body)
