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