public class MailConverterService extends Object
The service resolves embedded images and converts them into HTML base64 images (img tags with a data uri):
| Constructor and Description |
|---|
MailConverterService() |
| Modifier and Type | Method and Description |
|---|---|
String |
convertToHTML(javax.mail.Message message)
This method converts a MimeMessage object into HTML
A mail may contain text or HTML content.
|
public String convertToHTML(javax.mail.Message message) throws IOException, javax.mail.MessagingException
A 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.
javax.mail.MessagingExceptionIOExceptionExceptionCopyright © 2016–2021 Imixs Software Solutions GmbH. All rights reserved.