MvcMailer sends emails using the MVC views as Email Body with no effort. Here's a quick list of features: a) Use Razor/WebForms views b) Use Master pages c) Write Testable Code d) Pass values to your view using ViewBag or ViewModel and e) Generate Absolute URL using Url.Abs method and f) create multi-part emails by just adding a view file, g) scaffold your mailers.
MvcMailer has a MailerBase class that extends ControllerBase class. So, Mailers are just like your Controllers. As a result, you can use all the controller goodies without any learning curve, period. The end result is a professional looking HTML email body ready for your to send to your website users.
Visit the Project site for a comprehensive tutorial on MvcMailer. This version is for ASP.Net MVC 4
See the version list below for details.
Install-Package MvcMailer -Version 4.0.0
dotnet add package MvcMailer --version 4.0.0
<PackageReference Include="MvcMailer" Version="4.0.0" />
paket add MvcMailer --version 4.0.0
- T4Scaffolding (>= 1.0.7)
Showing the top 1 GitHub repositories that depend on MvcMailer:
Sample web app for ASP.NET MVC 5, EF 6 Code First, AutoMapper, Autofac and TDD
Read more about the GitHub Usage information on our documentation.