System.Net.Mail.SmtpClient.Sen ... [英] System.Net.Mail.SmtpClient.Sen...
本文介绍了System.Net.Mail.SmtpClient.Sen ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想知道在使用SmtpClient.Send方法时收到操作超时"异常的可能情况是什么.
在此先感谢....
Hi guys,
I would like to know what are the possible scenario where we get a Operation Timed Out Exception while using SmtpClient.Send method.
Thanks in advance....
推荐答案
由于存在属性System.Net.Mail.SmtpClient.Timeout
,因此自然也可以期待超时.请参阅 http://msdn.microsoft.com/en-us/library /system.net.mail.smtpclient.timeout.aspx [ ^ ].
毕竟,如果在建立连接后SMTP服务器断开,或者Internet连接丢失或类似的情况,该库应该怎么办?
—SA
As there is the propertySystem.Net.Mail.SmtpClient.Timeout
, it''s natural that you can also expect timeout itself. See http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.timeout.aspx[^].
After all, what the library should do if a SMTP server is broken after connection is already established, or Internet connection is lost or something like that?
—SA
这篇关于System.Net.Mail.SmtpClient.Sen ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文