Recipient's SMTP address

  • Thread starter Thread starter VictorL
  • Start date Start date
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
 
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
-
 
Back
Top