Getting Recipient's SMTP address?

J

Jeff Bienstadt

I know, I posted this a week or so ago, but I haven't seen any responses so
I'm trying again.

I've written a small Outlook addin in VB6 using the Outlook Object Model.
Everything seems to be working well, with one exception: I need to get the
SMTP mail address for each recipient. In the case of addresses within my
organization, for example, the Address property of the recipient appears to
be a partial LDAP path, while I need an SMTP address.

Could someone please tell me how to get an SMTP address from the partial
LDAP path?

Please note that I am a C/C++/Win32 developer with pretty much no experience
with Outlook, MAPI, or even VB. I mention this by way of saying please
don't assume knowledge that I likely don't have :)

Thanks for your help.

---jkb
 
D

Dmitry Streblechenko \(MVP\)

You will need to read the SMTP address from an EX recipient
http://www.outlookcode.com/d/code/getsenderaddy.htm#redemption shows how to
extract the sender SMTP address (PR_EMAIL property) from an EX address
entry, the code can be easily modified to be used with CDO 1.21 or Extended
MAPI. Instead of using the Sender property you will need to use
Recipient.AddressEntry.

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