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

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?
 
S

Sue Mosher [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top