I currently have an Access 2003 database that analyzes user information stored in several corporate systems. I need to add the capability to compare the e-mail addresses I have in that database to those that are used in specific distribution list in the Global Address List in Outlook 2003(using Exchange Server). I am new to the Outlook Object model, but have managed to access and loop through the distribution list to get most of the information I need. However, the e-mail address I retrieve is in the format:
/o=CMP/ou=Company Name/cn=Recipients/cn=John.Doe
I need it in the format John.Doe@Company.com
In searching this site and others, I have gotten myself thoroughly confused. It seems that this information is not available in the Outlook object model, but that I can get it through CDO, Redemption, or Extended MAPI, using PR_EMS_AB_PROXY_ADDRESSES (&H800F101E).
But how? All of the examples I could find are for deciphering the sender or recipient of a mail message, which I do not have.
What would work great in my process is a simple function that could return the @Company.com address (SMTP from the /o=CMP address (Type=EX).
Or, I could also use a separate process that would loop through all of the entries in the Global Address List and allow me to build a separate table containing just the /o=CMP address and the @Company.com address. (This table would probably come in handy later for analyzing other distribution lists).
Can anyone help me? I coding in VBA, and have both the CDO 1.21 Library and Redemption Outlook MAPI COM in my reference list.
/o=CMP/ou=Company Name/cn=Recipients/cn=John.Doe
I need it in the format John.Doe@Company.com
In searching this site and others, I have gotten myself thoroughly confused. It seems that this information is not available in the Outlook object model, but that I can get it through CDO, Redemption, or Extended MAPI, using PR_EMS_AB_PROXY_ADDRESSES (&H800F101E).
But how? All of the examples I could find are for deciphering the sender or recipient of a mail message, which I do not have.
What would work great in my process is a simple function that could return the @Company.com address (SMTP from the /o=CMP address (Type=EX).
Or, I could also use a separate process that would loop through all of the entries in the Global Address List and allow me to build a separate table containing just the /o=CMP address and the @Company.com address. (This table would probably come in handy later for analyzing other distribution lists).
Can anyone help me? I coding in VBA, and have both the CDO 1.21 Library and Redemption Outlook MAPI COM in my reference list.