DynaMail - send data-driven, multi-language emails - replace Sitecore EXM
For a Sitecore Experience Commerce project we needed to send out emails on placed orders, but could not use EXM due to licensing issues. We solved this by adding a commerce pipeline block to send out e-mails on newly created orders but needed support for data-driven, multi-language transactional emails. I wrote a system to develop these email templates using:
The system is called DynaMail. In development mode the e-mail templates can be edited in an editor like Visual Studio code, and on save can be previewed in a browser:
From within the preview window it is possible to send out email to an email address for quick testing in email clients:
You can switch the preview between the different available mail templates, and the different available languages.
When you are done with the development of the templates, Dynamail has a build mode to compile the email templates for multiple languages into the production version, so templates can be validated before deployment:
The compilation results in an Azure Functions package that uses a SendGrid binding to send out the emails.
The project including a lot of documentation can be found at?https://github.com/macaw-cad/DynaMail and is open-source under an MIT license (can be commercially used for free). I would love to get feedback if this is helpful for other projects as well...
Below an example of a mobile-optimized version of the above transactional email for a Sitecore Experience Commerce order: