Re: SMTP Address through MAPI



Get the AddressEntry for the object and use the multivalued string property PR_EMS_AB_PROXY_ADDRESSES (0x800F101E).

That property isn't available from the Outlook object model. You'd need to use CDO 1.21 (not supported for .NET languages) or Extended MAPI (C++ or Delphi only) or Redemption (3rd party library at www.dimastr.com/redemption) to find the correct SMTP address.

You would iterate the Variant array that is returned by that property and look for one that begins with "SMTP:", that indicates the default SMTP address for that Exchange distinguished name.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:CF2B26B5-2D71-424D-89A0-B45ACC89A5E3@xxxxxxxxxxxxxxxx
Hi

I have a .NET adet d-in (C#) which may be connected to Exchange. I need to
recruse through the mail items and pull out recipent details. Is there a way
I can get the SMTP address of an Exchange user via MAPI?


Many thanks

Craig

.



Relevant Pages


Loading