aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail Attachments