View Single Post
  #7  
Old June 3rd 08, 05:49 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Selected Email Information

That *is* an actual email address, in the X.400 format that Exchange uses. If you want the SMTP address for an Exchange sender or recipient in versions before Outlook 2007, you can use CDO or, to avoid security prompts, Redemption and the PR_EMAIL (&H39FE001E) MAPI property to obtain the SMTP address from the AddressEntry object. See http://www.outlookcode.com/d/code/ge...htm#redemption and http://www.cdolive.com/cdo5.htm#EMailAddressOfSender for examples. In ..NET languages, Microsoft doesn't officially support CDO and Extended MAPI. Redemption should work fine, and there are examples of using Extended MAPI, e.g. http://anoriginalidea.wordpress.com/...in-vbnet-vsto/.

See http://groups.google.com/group/micro...2fcbb691d5bf18 for a discussion of how to do it with Cached Exchange Mode in Outlook 2003 or later.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Barkster" wrote in message ...
Hey Sue, my outlook is connected to an exchange server and when I get
the recipients, any internal recipient is show as "/o=CompanyName/
ou="domain"/cn=recipients/cn=username;" Do you know how I can get the
actual email address. Of course it get the email address of any
external emails but it would be nice to have email of internal
emails. Any help would be appreciated. Thanks

Ads