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.
精彩评论