Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Email created with ASP.NET MVC 2 View (standard view engine)

Is there a way to email an ASP.NET View using the standard view engine (not spark)?

like image 818
Brian David Berman Avatar asked Dec 05 '22 23:12

Brian David Berman


2 Answers

If by standard view engine you mean WebForms then you could take a look at this blog post. If by standard view engine you mean Razor you may take a look at the following blog post. You may also take a look at MvcContrib way of doing it. And also DotLiquid.

like image 61
Darin Dimitrov Avatar answered Dec 24 '22 09:12

Darin Dimitrov


Andrew Davey done a recent presentation on Generating email with View Engines at mvcConf 2.

You can find out more information about the open source Postal project he created from the Postal project site or download it via NuGet.

It allows you to generate emails from the Razor view engine as well as the WebForms view engine.

like image 41
David Glenn Avatar answered Dec 24 '22 10:12

David Glenn