Use Razor as a Template Engine for Html Emails

Shiv Kumar

Razor is the View Engine in ASP.NET (and .NET Core) MVC. Razor has been independent of (decoupled) of anything “Web” since the beginning. However, using it as a Template Engine is almost undocumented., In this video, I show you how to use Razor as a Template Engine where you can use it to generate HTML Emails using the full power of Razor for dynamically generated HTML content

Source code for the Visual Studio solution presented in this video can be found here: