This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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