OpenPop message.Save

65 views Asked by At

I am trying to save the email msg as a file on the local drive.

 FileInfo msgfile = new FileInfo(Path.Combine(@"C:\\Users\\Public\\Documents\\msg-" + filenumber + ".msg"));
 getMessage.Save(msgfile);

But when I attempt to open the file Outlook gives me the following error

enter image description here

If i open the same file in Notepad i don't get any error.

Suggestions???

Regards

MRRCOMP

1

There are 1 answers

1
Meir Rotfleisch On

I solved by saving with extension .eml and not msg

Hope this helps others

Regards