VB.NET read msg file

I have an application that requires to read the contents of outlook MSG files and read\obtain the contents of the email.  Can you please suggest the best method for opening and reading MSG files.
CmitchAsked:
Who is Participating?
 
Chris BottomleySoftware Quality Lead EngineerCommented:
Hello Cmitch,

Using VBA you would for example:

Dim mai As mailitem
    Set mai = Application.CreateItemFromTemplate("c:\users\wobble\fred.msg")

I presume the VB.net interface will be similar and after running the code 'mai' is a mailitem that can be treated normally.


Regards,

chris_bottomley
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.