设置了的,端口也是25,但是我觉得和这个SMTP没关系的,因为我本地不装SMTP都可以发的

解决方案 »

  1.   

    连接不上服务器
    The transport failed to connect to the server.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.
      

  2.   

    用的是的net.mail命名空间吗?把代码贴出来看看?邮件服务器是自己架设的吗?如果是自己架设,端口映射是否ok了?
      

  3.   

    用的是的net.mail命名空间的话,
    SmtpClient SC = new SmtpClient();
    SC.Host = "127.0.0.1";
    试试