开发者

MVC 3 Registration Confirmation Email

I'm using the stock MembershipProvider but I would like to add a method to send a confirmation email to the use upon registration开发者_Python百科. Without doing it directly within my Register actionresult, what would be the best way to do it?

I'm quite new to MVC so please take that in consideration in your reply.


I would strongly recommend you MvcMailer for email sending from an ASP.NET MVC application. Scott Hanselman also blogged about it.


I would suggest submitting the request to send the confirmation email into some queue and letting a background process to send all emails.


Postal FTW.

Nuget it, add a view for the email, add a few lines of Postal code, all done.

Simple and easy, which is the complete opposite of using the regular .NET mail stuff.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜