outlook help

  • Thread starter Thread starter kalikoi
  • Start date Start date
K

kalikoi

Is there a way to get the local OUTLOOK email adressess from the local
machine through scripting languages?

want to display outlook email adressess through Javascript or
vbscript
language


Thanks & Regards


Kalyan
 
What do you mean by local Outlook addresses? Do you mean the contact email
addresses from the Contacts folders?

You can get that using Outlook automation, but you would get security
prompts unless you are running in-process with Outlook and are using Outlook
2003 (or 2002 with the Exchange security form). See
http://www.outlookcode.com/d/sec.htm for information on that.

Also, if the code is running in a Web page you would need to make the
Outlook code a DLL or something that can be downloaded to the local machine
and run in the context of the local machine and its Outlook installation.

For getting email addresses from contacts you would get each contacts folder
you want. For just the default Contacts folder you'd use
NameSpace.GetDefaultFolder(olFolderContacts) to get the folder, get its
Items collection and iterate that (watching out because contacts folders can
contain distribution lists) and then check the ContactItem.Email1Address,
..Email2Address and .Email3Address.

Search on www.outlookcode.com for more information on Outlook automation.
 
Back
Top