This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling E-mails With Attachments

 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey fellas,

I'm working with the JavaMail API, and I have to send and receive e-mail with attachments. So far it's ok, but when I receive an e-mail with any attach, I don't get the message body. Otherwise, the message body is being get fine. First I try to get the body, then I get the attachments. What am I doing wrong?

Tks!




 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't read your code, but if you assume that it's only a 1 level deep hierarchy, that may be a source of problems; I found that messages were often constructed strangely.

--Dale--
 
Tiago Fernandez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I solved it.



Thanks anyway!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic