Can I read or send a Microsoft Office document using JavaMail?
JavaMail can read a Microsoft Office document as an attachment and save that document in a file. Likewise, JavaMail can attach a Microsoft Office document to a message and send it as an attachment. Use the MimeBodyPart saveFile and attachFile methods. To process the content of a Microsoft Office document you’ll need a separate library such as Apache POI.