wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes In-Memory email attachment 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 » EJB and other Java EE Technologies
Bookmark "In-Memory email attachment" Watch "In-Memory email attachment" New topic
Author

In-Memory email attachment

Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
I'm having some trouble sending attachments that are in-memory. Has anyone else seen this problem before?


Here's the code I'm working with:









The exception I'm getting is:

javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: IOException while sending message;
nested exception is:
java.io.IOException: Bad file descriptor
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at ct.fw.mail.SMTPMailSender.run(SMTPMailSender.java:364)
at java.lang.Thread.run(Thread.java:534)


I'd really appreciate any advice ya'll have as I'm at a loss on this one.


Fun programming etcetera!
 
wood burning stoves
 
subject: In-Memory email attachment
 
Similar Threads
Java Mail with Attachments
Send PDF in JavaMail
Java Mail with Attachment
sending attachments using javamail
can't find properties file problem