Solved

Programatic interface to Exchange

Posted on 2000-02-24
2
185 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

920 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

12 Experts available now in Live!

Get 1:1 Help Now