• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1461
  • Last Modified:

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.
0
Cmitch
Asked:
Cmitch
1 Solution
 
Chris BottomleyCommented:
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

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now