你的smtp是什么服务器?你的发送代码如何?
smtp 一般不需要特别配置即可发送出去,关键是dns设定要正确

解决方案 »

  1.   

    两台机子都是是windows2000 server版本。刚刚开始用时也没有配置过什么,不知道在那台没有装有smtp服务的服务器上不能用是不是由于这个原因。回复的代码是这样的:参数 address 是回复地址,body是回复的内容
    public void emailsend(string address,string body)
    {
    MailMessage message = new MailMessage();
    message.From="[email protected]";
    message.BodyFormat = MailFormat.Text;
    message.Body = body;
    message.Subject = "请不要用该地址回信";
    message.Priority = MailPriority.Normal;
    message.To = address;
    SmtpMail.SmtpServer = "";
    SmtpMail.Send(message);
      

  2.   

    没有smtp服务器,当然不能发邮件了。
    不过你可以设置SmtpServer。如果通常Smtp服务器都要求SMTP验证,而微软的MailMessage不支持SMTP验证,所以用别人的SMTP服务器也很麻烦。
      

  3.   

    但在我的调试机子上面同样这样的代码也可以进行发送邮件服务亚??
     出错信息是拒绝访问。 
    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.UnauthorizedAccessException: 拒绝访问。
    真是有点搞不懂了