smsohan / MvcMailer

A Mailer for ASP.Net MVC that forms the Email Body using MVC Views (Razor etc.) following Ruby on Rails ActionMailer style
MIT License
584 stars 178 forks source link

Added SendTaskAsync #55

Closed maximn closed 11 years ago

maximn commented 12 years ago

Added SendTaskAsync - Task SendTaskAsync(MailMessage mailMessage)

Fixed tests for SendAsync (now really send async [add to the list on another thread]). Removed the [ThreadStatic from TestSmtpClient] and now locks when adding to messages list.

smsohan commented 11 years ago

Hi Maxim: Thanks for your work on this. I was thinking Task API with async/await would be a perfect thing to introduce once we have .net 4.5 as a mainstream thing. But I like your idea and will play with it a little bit.

Thanks again.

Sohan