Sending Attached Outputstream email

Discussions

General J2EE: Sending Attached Outputstream email

  1. Sending Attached Outputstream email (1 messages)

    Hi
     I want to send a mail with attachment which is generated during runtime. Right now I am using the normal way to create a file in the directory , then attached it. It works fine but how can I send an attachment without creating a file in the back end? Can anyone help me or
    show me the example in java?

    Thanks

    allan
  2. You can try to use java.io.PipedOutputStream and PipedInputStream.

    Have a nice day

    edo