MvcMailer 0.6.0

MvcMailer sends emails using the MVC views as Email Body with no effort. See an example at the project site.

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 [New in V0.5].

This package has a very good amount of test coverage and if you want, take a look at the project site. This is email done eight for ASP.Net MVC - no more spaghetti code for emailing :) See the code project article at to learn more about MvcMailer!

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.

There is a newer version of this package available.
See the version list below for details.
Install-Package MvcMailer -Version 0.6.0
dotnet add package MvcMailer --version 0.6.0
<PackageReference Include="MvcMailer" Version="0.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MvcMailer --version 0.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

Version History

Version Downloads Last updated
4.5.0 379,066 3/17/2013
4.0.0 61,271 10/1/2012
1.1.0 81,160 3/10/2011
1.0.0 1,367 3/7/2011
0.9.0 968 2/28/2011
0.8.0 914 2/22/2011
0.7.0 1,225 1/27/2011
0.6.0 1,075 1/25/2011
0.4.0 1,042 1/20/2011
0.3.0 992 1/19/2011
0.2.0 1,101 1/17/2011
Show less