In my MVC 3 Razor application, an ActionResult Create() method in the Controller handles a user HttpPost. At that point:
Since emailing is the most time-consuming activity, I'm attempting to use SmtpClient.SendAsync(), rather than SmtpClient().Send.
Is this scenario possible if inheritance is from AsyncController? Can anyone provide an example?
Thanks,
Arnold
You should definitely check out MVC Mailer. Very nice tool to create emails with razor views. It has an option to send mails asynchronously. MVC mailer is also available via nuget.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With