Accessing Outlook "Global Address List" 
Author Message
 Accessing Outlook "Global Address List"


I have a client side script that reads the global address list and returns
all the users in the list. However this only returns the X400 version of the
adderss i.e. /o=myCompany/ou=myDOMAIN/cn=MyContainer/cn=myName

As this will need to integrate with a component such as CDONTS I need to
retrieve the SMTP form of the address but can't find a property or
conversion function.

Does one exists/is it possible to retrieve the SMTP form of the address?

I have included the script below:

<script language="VBScript">
 on error resume next

 Set myApplication = CreateObject("Outlook.Application")
 Set myNameSpace = myApplication.GetNameSpace("MAPI")
 Set myAddressList = myNameSpace.AddressLists("Recipients")
 Set myAddressEntries = myAddressList.AddressEntries

 for i = 1 to myAddressEntries.count
  if myAddressEntries(i).displaytype = 1 then

   document.write "<strong>" & myAddressEntries(i).address & "</strong>
   set myMembers = myAddressEntries(i).members
   for j = 0 to myMembers.count
    document.write "- " & myMembers(j).address & "<br>"
   set myMembers = nothing
   document.write "<br>"
  end if

 set myAddressEntries = nothing
 set myAddressList = nothing
 set myNameSpace = nothing
 set myApplication = nothing

 if err.number > 0 then
  strError = "<br><br>There was an error.<br>" & err.number & " : " &
  document.write strError
 end if

Many thanks (in advance),

Tue, 31 May 2005 17:33:16 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Displaying "Outlook Address List" Dialog Form

2. smtp email addresses in the Outlook global address list

3. "Show this address list first"

4. How to get the Global Address List from Outlook

5. Access the global address list on an Exchange server

6. Programatically import global address from Outlook to Access

7. Access the Global Address List in VBA.

8. Accessing the Global Address List using VBA

9. accessing global address list

10. Accessing Global Address List on Exchange Server???

11. Obtaining email addresses from Global Address List

12. "Global Template"


Powered by phpBB® Forum Software