rt

解决方案 »

  1.   

    可以,你可以参考
    http://www.blogcn.com/user41/blog_of_phil/blog/21192911.html
    和http://www.blogcn.com/user41/blog_of_phil/blog/21192969.html
    其中有段:
    m.setToList("[email protected]");//收件人      m.setCcList("[email protected],[email protected]");//抄送,每个地址用逗号隔开;或者用一个ArrayList的对象作为参数      // m.setBccList(bccTF.getText());      m.setSubject("demo");//主题      // Now copy the text from the Compose TextArea.      m.setBody("this is a demo");//正文      // XXX I18N: use setBody(msgText.getText(), charset)            ArrayList v=new ArrayList();      v.add("d:\\test.htm");       m.setAccessories(v);//附件附件列表就是上面的v,要添加,删除附件,只要对这个ArrayList进行操作,够简单了吧。
      

  2.   

    我的意思是。mail上有一封带有附件的邮件。我要编辑它的附件。进行删除附件,添加附件。更新附件这样的操作。你上面写的是发送把。