查看 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)
归档时间: |
|
查看次数: |
4417 次 |
最近记录: |