Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / October 2006

Tip: Looking for answers? Try searching our database.

Read the content (body) of an Outlook message (.msg) in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ryo - 24 Oct 2006 16:37 GMT
Hello !

MVP from dotnet.framework tell me to post my question here, there are more
chance to get an answer ^_^
I would like to read the content (body) of a saved Outlook message (.msg)
and the names of attachments in C# (Framework 2.0).
Someone know how to do this ?
Thanks.
Dan Mitchell - 24 Oct 2006 16:44 GMT
> MVP from dotnet.framework tell me to post my question here, there are
> more chance to get an answer ^_^
> I would like to read the content (body) of a saved Outlook message
> (.msg) and the names of attachments in C# (Framework 2.0).

I've never used it myself, but this:

http://www.priasoft.com/exchangemigration/products_msg_r.asp

has been mentioned a lot around here.

-- dan
Ryo - 25 Oct 2006 07:56 GMT
Thanks for this clue.
No other (free if possible) solution ?

> > MVP from dotnet.framework tell me to post my question here, there are
> > more chance to get an answer ^_^
[quoted text clipped - 8 lines]
>
>  -- dan
Dan Mitchell - 25 Oct 2006 17:21 GMT
=?Utf-8?B?Unlv?= <Ryo@discussions.microsoft.com> wrote in news:12498DAC-
569E-4ACB-90C6-72EB480C1734@microsoft.com:
> Thanks for this clue.
> No other (free if possible) solution ?

Yup -- search the archives of this group and mapi-l for a bunch of other
people who've asked this before, but to summarise, a .msg file is just a
structured storage, so you'd use IStream and IStorage, or whatever the CLR
equivalents are. Use DocFile viewer to poke around and you'll get the
idea, it's just a bunch of streams, one per mapi property.

-- dan
frank1951@lycos.com - 29 Oct 2006 21:15 GMT
There is a free solution for reading the fileproperties: dso (from
microsoft).
To get the emailproperties written in these fileproperties, you can use
MailToFile (not free, but very cheap). This Outlook add-in saves e-mail
as a msg file and includes all e-mail information in the fileproperties
as well. You may read these properties by right click, choose
properties.
See www.MailToFile.com/en/
Using DSO is not a problem for you?

Dan Mitchell schreef:

> =?Utf-8?B?Unlv?= <Ryo@discussions.microsoft.com> wrote in news:12498DAC-
> 569E-4ACB-90C6-72EB480C1734@microsoft.com:
[quoted text clipped - 8 lines]
>
>  -- dan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.