https://blog.aspose.com/email/convert-emails-to-html-in-java/
Convert Emails to HTML in Java