.net中发送邮件的问题
System.Web.Mail.SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["MailServer"].ToString(); System.Web.Mail.SmtpMail.Send(sFrom,sTo,stitle,sContent);为什么发邮件发布出去,报错
邮件无法发送到 SMTP 服务器 0x800ccc15。服务器 not available
?明: ?行当前 Web ?求期?,出?未?理的?常。???堆?跟踪信息,以了解有????以及代?中?致??的出?的??信息。 ?常??信息: System.Runtime.InteropServices.COMException: ?件无法?送到 SMTP 服?器。????代?? 0x800ccc15。服?器??? not available
System.Web.Mail.SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings["MailServer"].ToString(); System.Web.Mail.SmtpMail.Send(sFrom,sTo,stitle,sContent);为什么发邮件发布出去,报错
邮件无法发送到 SMTP 服务器 0x800ccc15。服务器 not available
?明: ?行当前 Web ?求期?,出?未?理的?常。???堆?跟踪信息,以了解有????以及代?中?致??的出?的??信息。 ?常??信息: System.Runtime.InteropServices.COMException: ?件无法?送到 SMTP 服?器。????代?? 0x800ccc15。服?器??? not available
解决方案 »
- 动态生成选项卡,高手来帮忙解题
- 用FileUpLoad获取文件长度的时候引发的异常
- 无法将类型为“System.DBNull”的对象强制转换为类型“System.String”。
- 请问怎么我用session 没用?
- 简单问题,正解后即结贴!
- 【!!!!求一个简单之极的正则表达式!!!!】
- ===WPF里怎么给图片添加文字===
- 请教为什么要按两下click,image.src=mysrc才有效!
- 如何用.net 打包,还有一些控件如何处理?
- 如何实现今日下载排行榜??如何在每天的23:59分更新数据库?
- 请教如何在ASP.NET中调用JAVASCRIPT函数,并得到函数的返回值?
- 关于asp.net发送邮件程序报错
System.Web.Mail.SmtpMail.SmtpServer = "xxx.com.cn";
http://blog.joycode.com/ghj/archive/2004/10/22/36274.aspx
第一要配置SMTP服务,第一个网址里有
第二是关于杀毒软件的,因为有的杀毒软件会屏蔽掉25端口,第二个网址上有解释,
你可以把杀毒软件先关闭掉