System.Net.Mail.SmtpException: The operation has timed out. error in asp.net send mail code using godaddy hosting

筅森魡賤 提交于 2019-11-29 09:25:36

I think this is the famous SSL issue of System.Net.Mail

System.Net.Mail with SSL to authenticate against port 465

You should use some external library or wait until Microsoft include this features in a framework release

Javad_Raouf

Just Change:

smtp.Timeout = 20000;

To

smtp.Timeout = 2000000;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!