0 Replies Latest reply: Oct 9, 2008 8:23 AM by 843830 RSS

    help:how to use addAttachment method in NormalizedMessage

      i have a problem about the NormalizedMessage's addAttachment method ,it is below:

      public void addAttachment(java.lang.String id, javax.activation.DataHandler content) throws MessagingException
      i have a string .i want to transfer it to a certain SE as the attachment. how can I do!?

      i try to do it as below

      addAttachment("someid", new DataHandler(wantedString,"text/plain"))

      it does works in my computer with Window OS. however it DOESNOT WORK in Linux OS.?why?

      who can give me the correct using about DataHandler?

      many thanks .