Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   outlook help (http://www.outlookbanter.com/outlook-vba/12035-outlook-help.html)

[email protected] April 19th 06 08:29 AM

outlook help
 
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


Ken Slovak - [MVP - Outlook] April 19th 06 03:54 PM

outlook help
 
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
oups.com...
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




All times are GMT +1. The time now is 08:25 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com