aspose file tools*
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
Author

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?

Tks!






Tiago Fernandez
http://www.tiago182.spyw.com/
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.

--Dale--
Tiago Fernandez
Ranch Hand

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



Thanks anyway!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling E-mails With Attachments