Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Mail with Attachment

Dave Wingate
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: Bad file descriptor
at javax.mail.Transport.send0(
at javax.mail.Transport.send(

I'd really appreciate any advice ya'll have as I'm at a loss on this one.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic