0

I need to open and convert a .msg file from disk into Exchange EmailMessage object in order to iterate it and do some operations. It can be possibile? I cannot find something useful on internet.

There's a way?

I tried with this library MsgReader.Outlook to open it, but I cannot convert it to Microsoft.Exchange.WebServices.Data.EmailMessage.

3
  • If you don't absolutely need an EmailMessage object but just need the contents, try stackoverflow.com/questions/26633082 Commented Nov 15, 2023 at 17:18
  • Are you trying to insert a new or completely replace the contents of an existing Exchange message with the contents of an MSG file? Or just reset some properties? Commented Nov 15, 2023 at 17:39
  • I need to test how the code works, but for reasons I cannot access the Exchange server for debug, so I'm trying to use a email .msg file. For that reason I need to convert the file to EmailMessage object to understand what's inside the object Commented Nov 16, 2023 at 8:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.