Wrapping emails
It is possible to wrap all emails sent by the system in an MJML or HTML wrapper.
Our implementation of the MJML engine is a bit unstable, so it is recommended to build the wrapper using MJML, then exporting the HTML version and uploading that to the platform.
SUBJECT will be replaced with the subject of the given email.
BODY will be replaced with the email-content of the given email.
To enable email-wrapping, set the Policy defaultEmailTemplateID
to the ID of the template.
You can control whether the content of the email is inserted into the template before or after rendering, via the Policy emailDoInsertBeforeRender
.