HTML Email Address Created Using ASP.NET MVC 2 View (Standard Viewer)

Is there a way to send an ASP.NET View message using a standard view mechanism (not a spark)?

+4
source share
5 answers

If you mean WebForms by the standard viewing engine, you can take a look at this blog post . If by standard viewers you mean Razor, you can take a look at after the blog post . You can also take a look at the way MvcContrib does this . And also DotLiquid .

+5
source

Andrew Davy made a recent presentation Creating Email Using Viewers in mvcConf 2 .

You can find out more about an open source open source project from

+5
source

You can take a look at Postal and see if this works for you.

+4
source

You can display the view in a line and then send it as the body of your message using:

MailMessage message = new MailMessage (); AlternateView htmlView = AlternateView.CreateAlternateViewFromString (htmlMessage, "text/html") message.AlternateViews.Add (htmlView); 
+1
source

Have you watched MvcMailer? See NuGet Package here and project documentation.

Hope this helps!

+1
source

Source: https://habr.com/ru/post/1339753/


All Articles