# Email Dynamic content using external xml file

**URL:** <https://forum.mautic.org/t/email-dynamic-content-using-external-xml-file/20008>\
**Category:** General Discussion\
**Created:** [June 29, 2021, 2:15pm UTC](https://forum.mautic.org/t/email-dynamic-content-using-external-xml-file/20008 "2021-06-29T14:15:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![arcmedia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arcmedia/32/1441_2.png) [@arcmedia](https://forum.mautic.org/u/arcmedia)\
**Post date:** [June 29, 2021, 2:15pm UTC](https://forum.mautic.org/t/email-dynamic-content-using-external-xml-file/20008/1 "2021-06-29T14:15:33Z")

</div>

Hi all,  
i was wondering if there is a way to use an external xml file in a dynamic content block or an email itself.

I have a client that would like to use a xml file to save the email data, e.g. an special offer for each lead.  
Could be something similar to:  
  
Speciar offer for lead 1   
Speciar offer for lead 2

And in the block access the data using the lead fields.  
This file could be uploaded to Mautic installation or in an accessible place.

I did this in the past using xslt and i was wondering if there is a plugin or another workaround to get something similar work. It doesn’t need to be an xml, could be a json or any structured code.

Thanks in advance

---

<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:** [June 30, 2021, 6:38am UTC](https://forum.mautic.org/t/email-dynamic-content-using-external-xml-file/20008/2 "2021-06-30T06:38:53Z")

</div>

Check this article, it can help: [https://joeykeller.com/add-new-functionality-to-your-mautic-with-a-conversion-table-2-case-studies/](https://joeykeller.com/add-new-functionality-to-your-mautic-with-a-conversion-table-2-case-studies/)

1. You would parse the file info before campaign, fill out the right promo in a custom field
2. Make your send and insert custom field.
3. Rinse and repeat.
