Solved

Programatic interface to Exchange

Posted on 2000-02-24
2
176 Views
Last Modified: 2010-04-08
Is there an programmatic interface to add users and mail accounts to MS Exchange?
0
Comment
Question by:kjsmith3
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
Bodya earned 50 total points
ID: 2558551
There are two interfaces you can use -
MAPI (Messaging Application Programming Interface )
CDO (Collaboration Data Objects) - which is only an additional scripting interface to the MAPI

I reccommend you to read in MSDN about CDO.
0
 
LVL 2

Expert Comment

by:Bodya
ID: 2558578
Here is an example

' get PAB AddressList from AddressLists collection of Session
Dim myList As AddressList ' used to obtain PAB
Dim newEntry As AddressEntry ' new user in PAB
Dim newField As Field ' fax number of new user
' assume objSession created and logged on to without problem
Set myList = objSession.AddressLists("Personal Address Book")
' add new AddressEntry to AddressEntries collection of AddressList
Set newEntry = myList.AddressEntries.Add("FAX", "John Doe")
' add FaxNumber field to new AddressEntry and give it a value
Set newField = newEntry.Fields.Add("FaxNumber", vbString)
newField.Value = "+1-206-555-7069" ' could have supplied this in Add
' commit new entry, field, and value to PAB AddressList
newEntry.Update
 
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Outlook Free & Paid Tools
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now