.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 

解决方案 »

  1.   

    你设定了你的邮件服务器地址了吧?
    System.Web.Mail.SmtpMail.SmtpServer = "xxx.com.cn";
      

  2.   

    哦,我使用的是本机的,LOCALHOST,
      

  3.   

    http://www.cnblogs.com/jzywh/archive/2005/06/09/170783.html
      

  4.   

    http://www.cnblogs.com/jzywh/archive/2005/06/09/170783.html
    http://blog.joycode.com/ghj/archive/2004/10/22/36274.aspx
    第一要配置SMTP服务,第一个网址里有
    第二是关于杀毒软件的,因为有的杀毒软件会屏蔽掉25端口,第二个网址上有解释,
    你可以把杀毒软件先关闭掉