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

@ssherekar,

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());

		eml.save("/Swapnil_2015/SysTools Product/EMLX/Hindi Chara.emlx", options);

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

@ssherekar,

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.

@ssherekar,

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());

	eml.save("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

@pradeepnegi

It is requested to please provide sample EML file for further investigation.

3.zip (17.2 KB)

This is the file

@pradeepnegi

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.
https://www.dropbox.com/s/0uflv9h9bo2lhjv/task.emlx?dl=0

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

@pradeepnegi

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

@pradeepnegi

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

@pradeepnegi

We have hotfix release for this issue. You may download at this link:
https://www.dropbox.com/s/7n2qsznz4afljk5/aspose-email-18.9.4-java.zip?dl=0

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)

@pradeepnegi

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.
https://www.dropbox.com/s/xqy19eva3pq6nkl/testing.emlx?dl=0

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

@pradeepnegi

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());

eml.save("D:\\161447\\tasktest.emlx", options);

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

@pradeepnegi

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.