How to retrieve the Outlook user's SMTP address when Exchange is being used.

We have built an Outlook Add-In using Delphi 2006 & Add-In Express.
I need to know how to retrieve the Outlook user's SMTP address when Exchange is being used.
All I get back is '/o=BCL/ou=first administritive group/cn=Recipients/cn=martinb'.
I have found proposed solutions using LDAP etc but am unsure what to use with it.
Any sugestions/ help welcome.
gms2702Asked:
Who is Participating?
 
wtstaddCommented:
You can do an LDAP query and look for the "mail" attribute or "proxyaddresses"

Search Filter = (|(proxyAddresses=SMTP:<$EMAIL$>)(proxyAddresses=smtp:<$EMAIL$>)(mail=<$EMAIL$>)(userPrincipalName=<$EMAIL$>))

Search DN = DC=DOMAINNAME,DC=LOCAL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.