我也遇到了同样的问题
你的文件系统是不是NTFS的?
我的在FAT32上就很正常

解决方案 »

  1.   

    我目前就是再fat32的2000上面,请问楼上的,你编写的代码和我一样吗?你设置过smtp服务器吗?我使用的是它的默认设置。
      

  2.   

    现在换了一种方式,用jmail组件来做
    MessageClass email = new MessageClass();
                email.Logging = true;
                email.Silent = true;
                email.MailServerUserName = "bmonkey1024";
                email.MailServerPassWord = "××××";
                email.From = "[email protected]";
                email.Subject = "jmail";
                email.Body = "test jmail send mail";
    email.Charset="GB2312";
    email.ContentType="text/html";
                email.AddRecipient("[email protected]","","");
                email.Send("smtp.163.com",false);
    email.Close();为什么这段代码在winform里面可以顺利的发送邮件,而在webform里面不能发送呢?在webform里面程序运行顺利,但是就是邮箱无法收到,为什么呢?把smtp.163.com换成它的ip地址也不行,请大虾指教!!!谢谢
      

  3.   

    http://www.sron.net/infoView/Article_657.htmlhttp://www.microsoft.com/China/Community/program/originalarticles/TechDoc/sendmail.mspx
      

  4.   

    用OpenSMTP吧
    http://www.cnblogs.com/unruledboy/archive/2004/06/28/19150.aspx
    很好的开源项目