I'm afraid that's not something JavaMail is going to help you with. You can use JavaMail to access all the content
of the message, but it's going to be up to you to decide how to display it or format it for printing. You can use the
Swing classes to render it, and then print it. Or you can find a library that lets you generate PDF directly.