.Net SMTP队列

Fra*_*oey 11 .net c# vb.net email smtp

有人见过.net电子邮件队列吗?

我希望能够指定要通过的SMTP服务器,报告问题并在必要或请求时重试电子邮件.

理想情况下,我喜欢开源的东西.

Ric*_*der 2

查看 System.Net.Mail,http://msdn.microsoft.com/en-us/library/dk1fb84h.aspx。您尤其需要查看 MailMessage 和 SmtpClient。

编辑

 // Invokes the SendEmail method on another thread.
 // Read MSDN on catching exception on completion and then wait a bit and send again.
 Task.Factory.StartNew(() => SendEmail()); 
Run Code Online (Sandbox Code Playgroud)