I am using a service component through ASP.NET MVC. I would like to send the email in a asynchronous way to let the user do other stuff without having to wait for the sendin
I have tried your function and it works even for email with in memory attachments. But here are some remarks:
What does the exception says ?
Does it work whan you use Send instead of SendAsync ? You are using 'using' clause and closing Stream before email is sent.
Here is good text about this topic:
Sending Mail in .NET 2.0