Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling E-mails With Attachments  RSS feed

 
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!