Add Email Templating Engine
Similar to ServiceStack Bundler, it'd be fantastic to have a node.js-powered email templating system for generating transactional emails with custom data payloads out of a SS app.
It'd be great if the engine worked with simple html templates and CSS so that non-C# people can get involved. Something super simple to use and set up, but powerful in execution.
This would make emails:
- collaborative (e.g. with frontend engineers)
- iterable (easy transactional email multivariate testing?)
- CSS automatic inlining
- optional integration with litmus.com?
The latest v5.2 release includes a powerful and easy to use template system which is ideal for non-devs to create email templates:
The Background MQ provides a great way to send emails in the background:
A working example of this is available in TechStacks:
Whilst the Email Templates use-case shows an example of generating text + html emails with markdown:
Scott Mackay commented
We used Postal for this with RazorEngine but it's lack of support for partials at the time circa Q3 2014 (RazorEngine, not Postal) led us to use the SS Razor engine instead, adding markdown razor support in the process.
Recommend Postal for Mutlipart mime messages, Foundation for the email client hardened css/html templates and SS razor engine for generating from dto's
Postal - http://aboutcode.net/postal/
Foundation - http://foundation.zurb.com/emails/email-templates.html
Drazen Dotlic commented
We've head great success by using Razor for this kind of thing. I don't think the templating engine is a good fit for a library like ServiceStack, why not use other libraries specialized for this kind of thing (like Razor)?
In order to use Razor outside of the ASP.NET (MVC) project, it's enough to add NuGet package like this one https://www.nuget.org/packages/RazorEngine/