consider to save the uploaded file to a temporary file on the server, then create a MailAttachment with its absolute path, seehttp://www.codeproject.com/vb/net/tsmailcontrol.asp

解决方案 »

  1.   

    思归大哥请帮帮忙:
    http://expert.csdn.net/Expert/topic/2475/2475597.xml?temp=.9213678
      

  2.   

    tryif(myFile.PostedFile.ContentLength>0)
    {
     string fileName = Path.GetTempFileName();
     myFile.PostedFile.SaveAs(fileName); mail.AddAttachment( fileName ,"","");
    }
      

  3.   

    那附件名为乱码的问题该如何解决呀?还有CDO发送邮件如何以HTML格式表示?
      

  4.   

    trymail.AddAttachment( HttpUtility.UrlEncode(fileName) ,"","");also seehttp://www.itraining.net.cn/lzh/showArticle.asp?art_ID=749orASP.net发送Email 
    http://www.chinabs.net/aspnet/default.asp?infoid=50
    orhttp://www.chinaspx.com/club/showtopic.asp?Forum_ID=3&TOPIC_ID=9