wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes JavaMail Attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JavaMail Attachments" Watch "JavaMail Attachments" New topic
Author

JavaMail Attachments

Ally Cavs
Ranch Hand

Joined: Aug 25, 2008
Posts: 89
Hi Guys

Below is code im using to attach am excel file to a mail. I have used very similar code before on tomcat war. Worked fine. This was is being deployed to GF3. The mail sends fine but no attachment is included.
The byte array is full of values (ie not empty or null). Any thoughts?

Ally Cavs
Ranch Hand

Joined: Aug 25, 2008
Posts: 89
I removed the last line



seems to overwrite
 
GeeCON Prague 2014
 
subject: JavaMail Attachments