I'm getting emails from the exchange server and saving them on the file system as .eml files for later use. is there any way or library that i can use to display the original the files on a Jframe, something like icepdf that takes a pdf file and display it on a Jframe.
With JavaMail you can read them. Then there are a few options:
- it's a plain text email (with or without attachments). A JTextArea will display your body just fine.
- it's an HTML email (with or without attachments). A non-editable JEditorPane will display your body just fine, except for embedded images.
- it's an email with both plain text and HTML parts (multipart/alternative). Choose which one to show.
i was thinking along the same line as well, but i just thought there might be a lib that you can use so that you don't have to go through the message body and check for different content types or disposition. I guess i'l just have to do it that way then. Thanks a mil