Logicify / mautic-advanced-templates-bundle

Plugin extends default email template capabilities with TWIG block so you can use advanced scripting techniques like conditions, loops etc
https://logicify.com/?utm_source=github&utm_campaign=mautic-templates&utm_medium=opensource
MIT License
86 stars 57 forks source link

feat: support arbitrary tokens when using the email send api #13

Closed radicand closed 2 years ago

radicand commented 4 years ago

Mautic's email send API allows you to supply arbitrary tokens in the POST body payload. This PR adds support for Twig to process these tokens.

Tokens can be strings or full-on objects, eliminating the need for storing data temporarily in contact/lead fields, as well as JSON parsing. See the provided example in the README.

MarketSmart commented 2 years ago

@radicand I have implemented this into the updated mautic 4 branch (1.2-beta). If you get a chance could you perform additional testing. I will be testing this on my end as well. Im closing this PR since its going into master.

radicand commented 2 years ago

@MarketSmart thanks for this; to be honest though I'm no longer using the platform and will not be able to test.

ldrrp commented 2 years ago

@radicand thats ok. Thank you for responding.