Recipient's SMTP address

V

VictorL

'Hello,

I’m writing script for Outlook 2003 that has to check recipients SMTP
address. Most recipients are in the Exchange’s GAL.

To: string looks like this: To: John, Doe; Jane, Brown

I need to get Recipient’s primary SMTP address from address book, and if
this is possible other e-mail addresses as well.
What I expect to receive: “John, Doe’s address is (e-mail address removed)â€


Thank you,
Victor
 
D

Dmitry Streblechenko

Firstly, instead of reading the To property, you need to loop through the
Recipients collection.
Secondly, ff you were using Outlook 2007, you could read the
Recipient.AddressEntry.GetExchangeUser.PrimarySMTPAddress property.
In older versions of Outlook your only choice is either Extended MAPI (C++
or Delphi) or <plug> Redemption (url below) which exposes
AddressEntry.SmtpAddress property</plug>

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

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