I have to send a thanks email (if someone emails to the particular开发者_StackOverflow中文版 account they will get automatic email saying "Thanks for sending"). How should I do this in asp.net mvc 2? What is the logic?
Consider using a brilliant library MvcMailer
You can use it to send text or html email, which body you define as a view. You can use whatever model you need and render emails with specific data.
It is available as a NuGet package for easy install.
精彩评论