MSG conversion to MHT

Convertion works if I do not set license in code,

Aspose.Email.MailMessage m = Aspose.Email.MailMessage.Load(msgfilePath);
Aspose.Email.MhtSaveOptions mhtSaveOptions = Aspose.Email.MhtSaveOptions.DefaultMhtml;
m.Save(mhtFilePath1, mhtSaveOptions);

But if I set license it returns mht file with wrong content

Aspose.Email.License license = new Aspose.Email.License();
license.SetLicense(licenseFilePath);
Aspose.Email.MailMessage m = Aspose.Email.MailMessage.Load(msgfilePath);
Aspose.Email.MhtSaveOptions mhtSaveOptions = Aspose.Email.MhtSaveOptions.DefaultMhtml;
m.Save(mhtFilePath2, mhtSaveOptions);

@hipatheone

It seems that you are experiencing an issue with the conversion of MSG files to MHT format when using a license. When the license is set, the output MHT file contains incorrect content, while it works fine without the license.

Here are a few steps you can take to troubleshoot this issue:

  1. Check License Validity: Ensure that the license file you are using is valid and has not expired. An invalid license can lead to unexpected behavior in the output.

  2. Use Default Save Options: When saving the MailMessage as MHT, you can try using the default save options to see if that resolves the issue. Here’s a code snippet for reference:

    Aspose.Email.License license = new Aspose.Email.License();
    license.SetLicense(licenseFilePath);
    
    Aspose.Email.MailMessage m = Aspose.Email.MailMessage.Load(msgfilePath);
    Aspose.Email.MhtSaveOptions mhtSaveOptions = Aspose.Email.MhtSaveOptions.DefaultMhtml;
    m.Save(mhtFilePath, mhtSaveOptions);
    
  3. Check for Additional Settings: If you are using any additional settings in MhtSaveOptions, try removing them to see if the issue persists. Sometimes, specific options can lead to unexpected results.

  4. Review Documentation: It may be helpful to review the official documentation for any notes regarding licensing and MHT conversion. The documentation provides examples and details on how to properly use the library for various formats.

  5. Contact Support: If the issue continues, consider reaching out to Aspose support with details about your license, the version of the library you are using, and any specific settings you have applied. They may be able to provide more targeted assistance.

If you have any further questions or need additional help, feel free to ask!

Checked all recommended above, issue still exists. Also I tried reach out for support on live chat with no respose. What would be best way to communicate with support on this issue?

Hello @hipatheone,
If possible, please share a sample file with us. This will help us reproduce the issue.

Thank you.

Created new private topic MSG conversion to MHT(2) with reference to sample file

Ok, Thank you.