0 Replies Latest reply on Feb 2, 2007 5:13 PM by Pete Muir

    Feedback request: seam-mail attachments

    Pete Muir Master

      I'm adding support for attachments to seam mail, and would like to get some feedback on ways to specify the file to attach. So far I've got the ability to do:

      <m:attachment value="/path/to/foo.bar" />
      where the foo.bar is accessible by the classloader for your app.

      <m:attachment value="#{foo.bar}" />
      where the object referenced by #{foo.bar} could be a java.io.File or java.net.URL

      <m:attachment value="#{foo.bar}" contentType="application/pdf" />
      where the object referenced by #{foo.bar} could be a byte[] or a InputStream

      Anything else that should be supported?