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

Free Support Forum - aspose.com

How to create EMLX from EML file using Aspose.Email for Java API

Hi Team,
I have to create EMLX file from EML. I have tried using MailMessage but it does not get open or create properly. Please provide us sample code.

Thanks & Regards
Ajinath Kharade


Thank you for posting your concern. Please share your sample EML file with us for further investigation at our end. You can use the following sample code for EML conversion to EMLx.

Sample Code

MailMessage eml = MailMessage.Load("161307\\task.eml");

EmlSaveOptions options = new EmlSaveOptions(MailMessageSaveType.EmlxFormat);

eml.Save("161307\\task.emlx", options);