wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Handling E-mails With Attachments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Handling E-mails With Attachments" Watch "Handling E-mails With Attachments" New topic

Handling E-mails With Attachments

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
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?


Tiago Fernandez
Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
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.

Tiago Fernandez
Ranch Hand

Joined: May 16, 2003
Posts: 167
Well, I solved it.

Thanks anyway!
Don't get me started about those stupid light bulbs.
subject: Handling E-mails With Attachments
Similar Threads
Reading mail content
Display Word attachments
Java mail attachmetnt include txt extensions
saving attachments with javamail
Java Mail receive Problem