Free Support Forum -

Convert EML to EMLX

Hi Team ,

I have to convert EML file to EMLX .
I have tried but not able to open this file not having any content in file.

Please provide a sample code to convert EML to EMLX

1 Like


Thank you for posting your concern. 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);

I have check with this sample code but facing some problem
EMLX file get created using ur code but not able to see the body content only header part able to see while opening file in Mail app.
I am using below code:

        MailMessage eml = MailMessage.load("/Swapnil_2015/SysTools Product/EMLX/Hindi Chara.eml");

		EmlSaveOptions options = new EmlSaveOptions(MailMessageSaveType.getEmlxFormat());"/Swapnil_2015/SysTools Product/EMLX/Hindi Chara.emlx", options);

For opening Emlx file is there any specific way or technique.


Thank you for feedback. We were able to observe the problem and have logged it as EMAILNET-38807 for further investigation by our Product team. We’ll update you here once there is some information or a fix version available in this regard.


This issue has been fixed in the latest release of Aspose.Email for .NET 17.9. Please let us know if we can be of any additional help to you in this regard.

1 Like

Hi team,
i have using this code to convert Eml to Emlx:
MailMessage eml = MailMessage.load(“C:\Users\DELL\Desktop\3.eml”);

	EmlSaveOptions options = new EmlSaveOptions(MailMessageSaveType.getEmlxFormat());"C:\\Users\\DELL\\Desktop\\task.emlx", options);

But emlx file is not showing images which is associated with message body.

I am using latest version of aspose email jar


It is requested to please provide sample EML file for further investigation. (17.2 KB)

This is the file


We are working on this issue and we need your feedback. Can you please check the following EMLX file that we have converted using Aspose.Email for Java 18.9 if it is correct.

I have checked this file which you have sent, but there is no change in the result.


We were able to reproduce this issue and have logged it with ID “EMAILJAVA-34434” for further investigation. You will automatically be informed here once we have more information to share.

Hi team,
Please let me know that EMAILJAVA-34434 isuue resolved or not


We are working on this issue and we shall be able to provide hotfix release to you hopefully at the end of this week.


We have hotfix release for this issue. You may download at this link:

There is no Change in emlx file, It still not showing images.
I have attach screenshot, take a look on that.Capture.PNG (27.9 KB)


We have tested again and it looks working fine. Please have a look at the screenshot of EMLX file EML_to_EMLX.png (143.8 KB)

Moreover, please find the generated EMLX file at the link given below as well and let us know if it is correct.

can you please send me code by which you are converting eml to emlx in java.
I have checked file which you had sent me, It is in correct format, this file shwoing images


You may use the following code sample with Aspose.Email for Java 18.9.4.

MailMessage eml = MailMessage.load("D:\\161447\\3.eml");

EmlSaveOptions options = new EmlSaveOptions(MailMessageSaveType.getEmlxFormat());"D:\\161447\\tasktest.emlx", options);

Thanku for your quick reply, It’s working now.


We are glad to know that your issue is resolved. You are always welcome and please feel free to write us if you have any query in future.