This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 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: http://aspose.com/file-tools
 
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