my dog learned polymorphism*
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

JavaMail Attachments

Ally Cavs
Ranch Hand

Joined: Aug 25, 2008
Posts: 88
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: 88
I removed the last line

seems to overwrite
I agree. Here's the link:
subject: JavaMail Attachments
Similar Threads
google app engine, issues sending email attachment
JavaMail:Why can't a recipient using Lotus Notes see the attachment of my mail
Java mail attachement problem
Javamail: Problem sending attachments
Attach a generated pdf in a mail