View Single Post
  #2  
Old January 27th 06, 01:32 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 1,574
Default Check if an address is in the recipient list including distribution lists?

You can access DL members using the Recipient.AddressEntry.Members
collection

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"PilotYid" wrote in message
ups.com...
Basically, In my Application_ItemSend I would like to check if a
particular person or persons are in the recipient list (To or CC). I
tried this by looping through mailItem.Recipients and checking each
one. Problem is that this won't look inside of distribution lists, so
if I send to a distribution list that has this person in it, this won't
detect it. How can I do this? Any way to expand the dist. list at this
point to look inside, and/or determine if a particular recipient is a
dist list?

Thanks for your help,
Aaron



Ads
 

Loans - Secured Loans - Buy PSP - Credit Card - Loans