Package org.imixs.archive.importer.mail
Class MailConverterService
java.lang.Object
org.imixs.archive.importer.mail.MailConverterService
The MailConverterService provides methods to convert a Mail Message object
into a html or pdf document.
The service resolves embedded images and converts them into HTML base64 images (img tags with a data uri):
- Author:
- rsoika
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToHTML(jakarta.mail.Message message) This method converts a MimeMessage object into HTML
-
Constructor Details
-
MailConverterService
public MailConverterService()
-
-
Method Details
-
convertToHTML
public String convertToHTML(jakarta.mail.Message message) throws IOException, jakarta.mail.MessagingException This method converts a MimeMessage object into HTMLA mail may contain text or HTML content. If the mail is a plain text mail, than a HTML template will be used to convert the plain text into a HTML presentation.
In case of a HTML mail, image source references to embedded mail parts will be extracted into in-line content.
- Throws:
jakarta.mail.MessagingExceptionIOExceptionException
-