SMTP Address through MAPI

C

Craig

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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