I need to know how to get an e-mail address using MAPI. When I examine the contents of a MapiRecipDesc structure (returned, for instance, by a call to MAPIAddress()
) I see that the lpszAddress
field contains not a normal SMTP address, but what appears to be some sort of an Exchange server query:
EX:/o=MMS/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=laiic
I believe I could use this to pull additional information from Exchange via Active Directory... Does anyone know if I could obtain an external email address this way, and if so, how I might accomplish this?