System.Net.Mail.SmtpClient.Sen ...

编程入门 行业动态 更新时间:2024-10-28 03:20:26
本文介绍了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,因此自然也可以期待超时.请参阅 msdn.microsoft/en-us/library /system.mail.smtpclient.timeout.aspx [ ^ ]. 毕竟,如果在建立连接后SMTP服务器断开,或者Internet连接丢失或类似的情况,该库应该怎么办?
—SA
As there is the property System.Net.Mail.SmtpClient.Timeout, it''s natural that you can also expect timeout itself. See msdn.microsoft/en-us/library/system.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 ...

本文发布于:2023-08-07 10:19:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318584.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Net   System   Mail   Sen   SmtpClient

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!