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

Free Support Forum - aspose.com

Create message file with RTF formatted message body preserving body content

Hello,
I have a pst file which contains message file with RTF formatted message body with some embedded files(inline attachments)
The pst file will be first processed by XSTReader which just extracts message properties as it could not generate msg file. So, I used Aspose to create msg file using those properties.

I am able to properly create msg files for all cases except message file with RTF body formatted message body. For RTF formatted case also, I am able to create the message file but could not able to preserve the its body format. Actually, it does not render the embedded files correctly.

This is google drive link for sample application -

Above link also contains sample pst file, actual message file saved from pst file using outlook as well as message created from utility.

Hoping the solution from your side.
Thanks in advance

Regards,
Bal Mukunda Shrestha

@Balmukunda

You are using old version of Aspose.Email for .NET 22.3. We suggest you please upgrade to the latest version of Aspose.Email for .NET 22.3. Hope this helps you

If you still face problem, please create sample console application that includes Aspose.Email related code and share it here for testing. Please also share the screenshots of problematic sections of output file. We will investigate the issue and provide you more information on it.

@tahir.manzoor
Why Aspose.PDF is required for creating message file?
I tried Aspose.Email v22.3 and there were no change in the result. You can use the same above standalone application shared in google drive and try it by replacing latest version of Aspose.Email.

Regarding the problematic sections of the output, you can open the two msg files shared in the google drive. one is directly saved from outlook by opening the pst file and another is created from sample application.

@Balmukunda

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as EMAILNET-40574. You will be notified via this forum thread once this issue is resolved.

We have modified the post. It is Aspose.Email for .NET 22.3. We apologize for your inconvenience.

@tahir.manzoor
Any progress on this?

@Balmukunda

Hopefully, the fix of this issue will be available in the May 2022 release. Please note that this ETA is not final at the moment. We will be sure to inform you via this forum thread once it is resolved.