# How to use dynamic content in MJML emails

**URL:** <https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311>\
**Category:** Product Support\
**Created:** [January 12, 2022, 6:15pm UTC](https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311 "2022-01-12T18:15:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 12, 2022, 6:15pm UTC](https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311/1 "2022-01-12T18:15:09Z")

</div>

**Your software**  
My Mautic version is: 4.1.1  
My PHP version is: 7.4

**Your problem**  
Hey there,  
is it possible to use dynamic content in MJML emails, yet?  
I tried `{dwc=freebie}`, `{dynamiccontent=freebie}` and a `RAW`/HTML container with

```auto
	<mj-raw>
	  <div data-slot="dwc" data-param-slot-name="freebie">
		<h1>Dynamic web content for myslot
		</h1>
	  </div>
	</mj-raw>

```

But all three versions didn’t work. The dwc slot `freebie` is created and tag based. Test user whom I send the mail to had the corresponding tag.  
What am I missing? Using the `Blank` template without MJML I have the `Dynamic Content` Slot as a building block available (which works as expected).

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 12, 2022, 8:23pm UTC](https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311/2 "2022-01-12T20:23:21Z")

</div>

Dynamic content is not available at the momment.  
If you really really need dynamic content, I suggest to use Twig Templates Plugin from mtcextendee.

---

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 12, 2022, 8:49pm UTC](https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311/3 "2022-01-12T20:49:26Z")

</div>

Thanks for the reply. The will be at some point, right?  
I made the following workaround:  
\*Create the MJML email

- click on preview
- copy the source
- insert the source in the code template
- use the DWC slots.

Thing is: [I struggle with using tags as filter for dynamic content in emails](https://forum.mautic.org/t/how-to-use-tags-for-dynamic-content-in-emails/22312). Therefore, my workaround is useless (for me) as of now 😆

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 12, 2022, 9:17pm UTC](https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311/4 "2022-01-12T21:17:42Z")

</div>

Yes, it is on the roadmap. We need to make it happen.  
Regarding your solution. With the Twig Template plugin you can utilize tags to decide if a piece of content should be displayed in an email or not.  
It is super powerful.

---

<div class="post-metadata">

**Author:** ![berndappl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/berndappl/32/7085_2.png) [@berndappl](https://forum.mautic.org/u/berndappl)\
**Post date:** [September 30, 2022, 8:34am UTC](https://forum.mautic.org/t/how-to-use-dynamic-content-in-mjml-emails/22311/5 "2022-09-30T08:34:59Z")

</div>

Hello! Any idea, when this is available?
