Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,

how to get all Email ids from one particular outlook group to my application? i have to mail one particular outlook group Email ids from my application.

thanks,
krunal
Posted

1 solution

Hi,
"outlook group ID" = distribution list?

You can query Active Directory, searching for "CN=DL_name"
C#
SearchResult r = SearchObj.FindOne(); 
foreach (string user in r.GetDirectoryEntry().Properties["member"]) 
Response.Write(user);

In client tools you can also use Microsoft Outlook Object Library component.
http://msdn.microsoft.com/en-us/library/bb645998.aspx[^]

For more information follow the links below:
http://weblogs.asp.net/whaggard/archive/2007/01/30/how-do-i-access-my-outlook-contacts-from-my-web-application.aspx[^]
http://forums.asp.net/t/1041781.aspx/1[^]
http://social.msdn.microsoft.com/Forums/en/winformsdesigner/thread/8f154d74-cd7a-46ff-8730-7e29f2a3edd5[^]



--Amit
 
Share this answer
 
Comments
kk2014 24-Jul-12 6:42am    
hi amit,

i have used this code from this link. can u help me out to overcome from this pro.?

http://msdn.microsoft.com/en-us/library/bb645998.aspx#Y570

can u look into this link function and help me.

thanks.
_Amy 24-Jul-12 6:51am    
You got a good link. This is working fine for me. What is the error you are getting?
Sandeep Mewara 24-Jul-12 8:17am    
Good answer. 5!
_Amy 24-Jul-12 8:23am    
Thank you Sandeep.
kk2014 8-Aug-12 1:44am    
hi ami,
can you psate ur code here?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900