How to send an asynchronous email address from an MVC 3 application?

In my MVC 3 Razor application, the ActionResult Create () method in the controller handles the custom HttpPost. In this moment:

  • Data is stored in a database.
  • Letters are sent to interested parties using another project in the solution.
  • The confirmation page is returned to the user.

Since email is the most time consuming, I am trying to use SmtpClient.SendAsync () rather than SmtpClient (). Submit .

Is this scenario possible if inheritance comes from AsyncController? Can anyone provide an example?

Thanks,

Arnold

+7
source share
1 answer

Be sure to check out the MVC Mailer . A very good tool for creating emails with razor views. It has the ability to send asynchronous letters. MVC mailer is also available through nuget.

+9
source

All Articles