SenderEmailType is a property that was first introduced in Outlook 2003, so
the code will throw an error in previous versions. Make sure that you
reference the .dll of the earliest version of Outlook that you need to
support.

Signature
Eric Legault - MVP - Outlook
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, WSS 3
Application Development, MOSS 2007 Application Development)
Blog: http://blogs.officezealot.com/legault
Try Picture Attachments Wizard for Outlook!
http://www.collaborativeinnovations.ca
> I have a Windows Application that fills a grid on a form getting the
> read/unread items from the installed Outlook application. I am using VS
[quoted text clipped - 94 lines]
> The main question is why am I now getting an error when I check for the
> SenderEmailType?
demausdauth - 28 Mar 2008 22:32 GMT
Thanks Eric for responding.
I have since found out that it isn't one of the properties available as you
say. So now my question becomes -
How can I check to see if a mail item is from an Exchange server or not, and
have it work for Outlook 2000+ ?
i can check the version of Outlook and run code specific to different
versions, I just don't know what to run for 2000 & 2002 versions to tell if
it is an Exchange or not.
> SenderEmailType is a property that was first introduced in Outlook 2003, so
> the code will throw an error in previous versions. Make sure that you
[quoted text clipped - 99 lines]
> > The main question is why am I now getting an error when I check for the
> > SenderEmailType?
elegaultZZZ@REMOVEZZZmvps.org - 29 Mar 2008 06:30 GMT
I believe the only way to confirm that a received e-mail is from an Exchange
server is to either parse the message header and look for "X-MIMEOLE:
Produced By Microsoft Exchange V6.5", or access that property and value via
the DASL name
(http://schemas.microsoft.com/mapi/string/{00020386-0000-0000-C000-000000000046}/
x-mimeole).
Both of those methods though would require Redemption
(http://www.dimastr.com), although you can access MAPI properties like this
one with CDO (it's just easier with Redemption).

Signature
Eric Legault
MVP - Outlook
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
> Thanks Eric for responding.
>
[quoted text clipped - 121 lines]
>> > The main question is why am I now getting an error when I check for the
>> > SenderEmailType?