AppointmentItem.Recipients getting e-mail addresses

V

Victor

Hi,

How can I get a recipient e-mail address from AppointmentItem.Recipients
recipient ?

Recipients are resolved, so the ony thing I can get is their 'human' names.
Recipient.Address returns

"/o=DOMAIN1/ou=Exchange Administrative Group
(FYD233333SPDLT)/cn=Recipients/cn=myname"

How can I get recipients e-mails?
 
S

Sue Mosher [MVP-Outlook]

That *is* the email address, in X.500. If you want the SMTP address for an
Exchange user, in versions before Outlook 2007, 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/getsenderaddy.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...der-of-a-mailitem-from-outlook-in-vbnet-vsto/.

See
http://groups.google.com/group/micr...e_frm/thread/4d4d5fece24a2a7/ad2fcbb691d5bf18
for a discussion of how to do it with Cached Exchange Mode in Outlook 2003 or
later.

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
 
V

Victor

Sue,

Thank you very much for your reply.
Sorry for posting in a wrong group, - I will use groups you suggested next
time.

Victor
 

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