2

I'd like my MVC-3 application to send out nicely formatted status emails. Is there a standard library that I can use to handle the dirty work?

4

2 回答 2

3

No, MVC does not include anything related to sending emails. But it doesn't need to, because this functionality is built into .NET. There are many many many tutorials on how to send html emails in .NET. It's not a lot of code to do it either.

http://www.4guysfromrolla.com/articles/080206-1.aspx

http://www.4guysfromrolla.com/webtech/080801-1.shtml

http://www.search-this.com/2009/02/05/aspnet-sending-email-both-in-html-and-plain-text/

etc.. etc.. etc...

There are various third party libraries that improve things, such as MvcMailer, FluentEmail, etc.. Just search for email in NuGet and see the list.

于 2012-04-12T16:25:27.357 回答
2

Take a look at MvcMailer

于 2012-04-12T15:45:55.617 回答