jsp代码:
response.setContentType("application/octet-stream");response.setHeader("Content-Disposition","attachment; filename=\"" +filename+ "\"");java.io.OutputStream os = response.getOutputStream(); Pop3MailManager mailManager = new Pop3MailManager();mailManager.downloadAffix(user,id,filename,os);os.close();

解决方案 »

  1.   

    去网上搜索JavaMail,很多的代码例子
      

  2.   

    去网上搜索JavaMail,很多的代码例子
      

  3.   

    网上的例子没有好的收取Email附件的例子阿!!!!
      

  4.   

    表达不清楚
    是当点击链接,提示另存为的时候,
    显示、保存的文件名是乱码或者网页的名称(如:down.jsp),不是附件名好像,只有中文文件名是这样的,英文的没事,为什么?
      

  5.   

    楼主能不能把代码发给我一份啊!!!
    谢谢!!!
    Email:[email protected]
      

  6.   

    to: xbalan(风) ( ) 信誉:100 http://www.yesky.com/SoftChannel/72342371961929728/20040707/1828364.shtml
    我是参考上面的代码写的函数