How to: Open *.MSG File from Hard Drive via Code

  • Thread starter Thread starter Benjamin
  • Start date Start date
B

Benjamin

I need to :
Open *.MSG File from Hard Drive via Code
and extract the file attachment. I have hundreds of these emails that we
need the attachments extracted from. But the .msg files are on a hard drive.

Someone help me out here....

I need the code to open and access the mailitem....
how do I open a .msg file?
 
Use the Application.CreateItemFromTemplate method. That will create a new
message based on the .msg file. You can then work with that message's
Attachments collection.
 
Back
Top