tags:

views:

67

answers:

2

Can you suggest me how I can do async operations with asp.net MVC

A: 

The same way as with any other platform... the fact that you're using ASP.NET MVC doesn't change anything to the way SmtpClient works. If it doesn't work, it's probably not due to ASP.NET MVC...

Thomas Levesque
I think the OP wants a means of performing an asynchronous request, as in IHttpAsyncHandler.
spender
Or maybe not...
spender
A: 

A cursory search of the internet indicates that async processing is not currently part of MVC, but it is possible to roll your own:

http://blog.codeville.net/2008/04/05/improve-scalability-in-aspnet-mvc-using-asynchronous-requests/

Using such a pattern would then allow you to perform other async operations without tying up a thread.

EDIT:

Or perhaps this near dupe question solves your problem?

http://stackoverflow.com/questions/279953/how-to-send-an-email-with-attachments-using-smtpclient-sendasync

spender