Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Reading Contacts Folder with cdo GetAddressList please help


Message #1 by muratb@k... on Sat, 23 Feb 2002 11:47:05 +0200
Hi

I want to list the contacts of a particular mailbox with CDO.

Currently I am able to list these with the code below.:





Set objFolder = objSession.GetDefaultFolder(5) 

Set objMessages = objFolder.Messages 

Set objFilter = objMessages.Filter 

set objMessage =objMessages.Getfirst 

if objMessage.Type = "IPM.Contact" then 

	Response.Write objMessage.Fields(CdoPR_DISPLAY_NAME).Value 

End if



The question is can I use the getaddresslist method of the session object

that we use in GAL listings? 

I tried

Set objPAB = objSession.GetAddressList(1)

Set objPAB = objPAB.AddressEntries

but not worked.



How can I access the PAB with this way?

Thanks in advance.



Murat


  Return to Index