Free Support Forum - aspose.com

Convert .msg file to eml format

Can you please share the code to convert .msg file to eml file in .net?
Also please let me know which dll we need to use for this?

Regards
Anish

@anishvj,

You can do this using the following simple lines of code:

MailMessage msg = MailMessage.Load("input.msg, new MsgLoadOptions());

msg.Save("output.eml");

Please get the latest version of Aspose.Email API from this Nuget link.

1 Like