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
90 stars 57 forks source link

Share email tokens with template, rather than only Lead #14

Closed oytuntez closed 2 years ago

oytuntez commented 4 years ago

Hi there,

We are using Mautic in use cases usually different than mainstream, such as for our transactional emails as a microservice. This requires us to share tokens that are sent from our message bus into our emails. Only Lead object wasn't enough, so instead, I am now sharing the SendEmailEvent with the template processor. The code is aware of its parent, CommonEvent as well.

This change would not affect anyone using it, but it would enable flexibility if event tokens are used in a custom workflow.

MarketSmart commented 2 years ago

Could you do these changes onto the 1.2-beta branch? Closing this one