I have tried Jet.OLEDB with OleDbDataAdapter(sqlText, connectionString), but
this doesn't seem to let me identify or more importantly open attachments.

Re: How to read Outlook attachments in .NET ? by Nick

Nick
Tue Nov 23 00:28:35 CST 2004

normally, e-mail messages are sent in MIME format. This means that you have
a multipart message, with each part having its own format and termination
string. Attachments are simply parts of the message, as are the HTML and
Text versions of the e-mail message.

Data adapters won't help. It isn't a database record.
--- Nick

"phodge" <phodge@discussions.microsoft.com> wrote in message
news:BDE89E3E-F5F0-4217-A635-80CF5CCD8629@microsoft.com...
> I have tried Jet.OLEDB with OleDbDataAdapter(sqlText, connectionString),
but
> this doesn't seem to let me identify or more importantly open attachments.
>



Re: How to read Outlook attachments in .NET ? by phodge

phodge
Tue Nov 23 07:47:02 CST 2004

Nick, thanks, but I believe outlook data is stored in a db. I can read all
data from outlook except for an attached message. Using an XmlDataDocument
gives me the email schema, and the data:
<Inbox>
<Importance>... blah-blah-bla
<Icon>...
<Subject>..
<From>..
<Sender_x0020_Name>..
<To>..
<Received>...
.
.
.
<Has_x0020_Attachments>true</Has_x0020_Attachments>
<Normalized_x0020_Subject>test</Normalized_x0020_Subject>
<Object_x0020_Type>5</Object_x0020_Type>
</Inbox>

Each email is accessible to me except for the attachment.

Re: How to read Outlook attachments in .NET ? by Nick

Nick
Tue Nov 23 08:19:01 CST 2004

Are you reading the PST or OST file?

If so, then your question is certainly a valid one, but you may be better
off asking it on one of the Exchange-related newsgroups. Programming
against Exchange or Outlook is a pretty eclectic skill and the exchange
forum has more gurus in that particular technical area.

I know that it is possible. I believe it may require a COM Interop to do
what you are trying to do, but I'm not sure.

Good luck,
--- Nick

"phodge" <phodge@discussions.microsoft.com> wrote in message
news:BD5B5336-AB3B-4D39-B619-756065F12A73@microsoft.com...
> Nick, thanks, but I believe outlook data is stored in a db. I can read
all
> data from outlook except for an attached message. Using an
XmlDataDocument
> gives me the email schema, and the data:
> <Inbox>
> <Importance>... blah-blah-bla
> <Icon>...
> <Subject>..
> <From>..
> <Sender_x0020_Name>..
> <To>..
> <Received>...
> .
> .
> .
> <Has_x0020_Attachments>true</Has_x0020_Attachments>
> <Normalized_x0020_Subject>test</Normalized_x0020_Subject>
> <Object_x0020_Type>5</Object_x0020_Type>
> </Inbox>
>
> Each email is accessible to me except for the attachment.



Re: How to read Outlook attachments in .NET ? by phodge

phodge
Wed Nov 24 23:05:02 CST 2004

I found a good c# page at:
http://support.microsoft.com/default.aspx?id=310258
"How to use the Microsoft Outlook Object Library to retrieve a message from
the Inbox by using Visual C# .NET"

"phodge" wrote:

> Nick, thanks, but I believe outlook data is stored in a db. I can read all
> data from outlook except for an attached message. Using an XmlDataDocument
> gives me the email schema, and the data:
> <Inbox>
> <Importance>... blah-blah-bla
> <Icon>...
> <Subject>..
> <From>..
> <Sender_x0020_Name>..
> <To>..
> <Received>...
> .
> .
> .
> <Has_x0020_Attachments>true</Has_x0020_Attachments>
> <Normalized_x0020_Subject>test</Normalized_x0020_Subject>
> <Object_x0020_Type>5</Object_x0020_Type>
> </Inbox>
>
> Each email is accessible to me except for the attachment.