File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 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
jQuery in Action, 2nd edition
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
Attach a generated pdf in a mail
Javamail: Problem sending attachments
Java mail attachement problem