Download microsoft mapi cdo


















Can you help us improve? Resolved my issue. Clear instructions. Easy to follow. No jargon. Pictures helped. Didn't match my screen. Incorrect instructions. Too technical. Not enough information. Not enough pictures. Any additional feedback? Submit feedback.

Thank you for your feedback! The Collaboration Data Objects all versions Libraries are used to implement Messaging and Collaboration functionality into a custom application. This article contains information on where these libraries can be found. The names of these files vary depending on the version of CDO as noted in the following table:.

Therefore, functionality is missing, and many application depend on this functionality. Note Because this version of CDO is included with the Exchange , we do not support installing this version on a computer that has Outlook installed. For more information, click the following article number to view the article in the Microsoft Knowledge Base:.

For more information, please see the following Microsoft Knoowledge Base article:. When using Exchange to install CDO 1. After the installation, you may have to manually register Cdo.

For Exchange System Manager installations, you must copy Cdo. By default, Outlook installations do not include the CDO 1. I will demonstrate how to access CDO, and will introduce you to a sample application that shows the potential for improving business processes by using Exchange.

My sample application will automate the normally mundane process of logging on to Exchange to view or print out your schedule every day. Users can receive a daily agenda via their pager and get meeting reminders along with descriptions and locations of those meetings automatically. This application is simply one example of how easily you can create more efficient workforce and business processes using Exchange.

You may find it easier to use CDO if you think of it as a staircase. You are at the top of the staircase, and the data you want is at the bottom. To get what you want, you will have to walk each stair, one at a time.

This object identifies who you are to the underlying MAPI services so that security and authorization can take place. Once you log onto your session, you can access a Folder object. A folder represents a container for any type of data: a set of messages, the addresses in the global address list, your calendar appointments, and so on.

Once you have the folder you want, you can access its Messages collection, through which you can access the data you need. The Messages collection is similar to a database recordset; it contains methods for moving to a particular record of data, much like navigating a database recordset. Once you have the Messages collection, you can navigate to any particular data nugget: a Message object, a Contact object, an Address Entry object, an Appointment object, and so on. Figure 1CDO Objects.

Now let's go back up to the top and look at the code for each step. During this installation, make sure that CDO is installed with Outlook. CDO is installed by default for Outlook 98, but not for Outlook Once Outlook is installed, make sure you can connect to your Exchange servers.

All CDO access begins with creating a session. After creating a CDO session, you need to log onto it to initialize the session and set up your access privileges with Exchange.

By default this will pop up a dialog box that asks you which profile to use for this logon. A profile is a collection of settings that define mail services, logon settings, message stores, and so on.

To bypass this dialog box, you can send a profile name or Exchange server settings when logging onto the CDO session. Once you are logged in, you can access data and services offered by Exchange. For example, if you want to log into a user's mailbox within Exchange and send e-mail, the code would look like this:.

Session" CDOSession. Recipients oRcpt. Add , "SMTP:corky seanmccormick. Resolve oMsg. Send CDOSession. Logoff In this code, you first log onto a CDO session. To bypass the profile dialog box, you send the logon method, the name of the profile to use, then access the user's Outbox by setting a Folder object to the Outbox property of the CDO session.

Once you set the Folder object to the Outbox property, this particular folder represents the Outbox of the Exchange mailbox. The next step to sending an e-mail is accessing the Messages collection within this folder. Do this by setting the Messages object equal to the Messages property of the Folder object.

This particular Messages object now represents the Messages collection of the Exchange mailbox's Outbox. Next you create a new message within the Messages collection by calling the Add method. This will create a new Message object to fill out and send. There are a few properties to set on this Message object before it can be sent. First, you need to set a recipient for the message by accessing the Recipients collection of the Message object.

The Recipients collection is the collection of addresses for this e-mail. You then call the Add method of the Recipients collection to create a new Recipient object with the necessary address properties.

Next you need to resolve the address of the new recipient. Resolving the address makes sure that Exchange has the proper tools to send the message to this person. For instance, if you set up the recipient to be an Internet e-mail address and this Exchange environment has no method of sending SMTP mail, resolving the address would fail. You set the subject and text of the message by setting the appropriate properties of the Message object. You send the message by calling the Send method of the Message object.

This saves your message within the Outbox folder of this mailbox and marks the message as ready to be sent by the Exchange server. Exchange takes over and sends the message automatically. The final step is to log off the CDO session.



0コメント

  • 1000 / 1000