Issue while converting msg to eml format for Mail Delivery Notification (MDN) message

Hi,

We are converting the email from msg to eml format.

But for few of the emails, the entire email is coming in the winmail.dat attachment after conversion.

The content-class value for these mails (in the msg format) in header section is as below:
content-class urn:content-classes:mdn

Please find the below code snippet that we are using for conversion:

MailMessage message = MailMessage.Load(emailName, new MsgLoadOptions() { PreserveEmbeddedMessageFormat = true});

message.Save(emailName+".eml",SaveOptions.DefaultEml);

Kindly let us know how to resolve this issue.

@Karishma_Rathod,

I have observed your requirements and request you to please provide the source MSG and generated EML. Please also provide the desired EML message as well along with sample code. We will observe the issue further on our end to help you out.