We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Email body not transformed correctly


We are experiencing an issue transforming certain emails.

we use the following code (condensed)

com.aspose.email.LoadOptions mailLoadOptions = new EmlLoadOptions();
MailMessage eml = MailMessage.load(inFilePath.toString(), mailLoadOptions);
// Save the Message to output stream in MHTML format
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

eml.save(outputStream, SaveOptions.getDefaultMhtml());
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());

// Load the stream in Word document
LoadOptions lo = new LoadOptions();
Document doc = new Document(inputStream, lo);

The resulting word file is an empty document. This problem occurs when using different load and save options.

We are using Aspose Email for Java 17.5.0

in attachment you will find several eml messages for which the issue occurs

What could be the cause and how can we fix or prevent this.

Hi Annelore,

We regret the inconvenience caused to you.

We were able to reproduce the problem at our end which has now been logged as EMAILJAVA-34285 for further consideration by our Product team. We’ll update you here once there is some information or a fix version available in this regard.