Tài liệu Module 4: Incorporating CDO for Exchange 2000 into a Web Solution - Pdf 85


Contents
Overview 1
Introduction to CDO 2
CDO Architecture 6
The CDO for Exchange Object Model 8
Adding Messaging Functionality 14
Adding Contact Functionality 24
Adding Calendar Functionality 29
Administering Exchange 2000 by Using
CDO for Exchange Management 44
Lab A: Incorporating CDO for Exchange
into a Web Solution 48
Lab B: Performing Basic Exchange 2000
Administrative Tasks by Using CDO for
Exchange Management 58
Review 64

Module 4: Incorporating
CDO for Exchange 2000
into a Web Solution Information in this document is subject to change without notice. The names of companies,
products, people, characters, and/or data mentioned herein are fictitious and are in no way intended

Editing Manager: Lynette Skinner
Editors: Kelly Baker, Nancy Finch
Copy Editor: Ed McKillop (S&T Consulting)
Production Manager: Miracle Davis
Print Coordinator: Marlene Lambert (Online Training Solutions Inc.)
Online Production Coordinator: Jenny Boe
Test Manager: Eric R. Myers
Creative Director, Media/Sim Services: David Mahlmann
Web Development Lead: Lisa Pease
CD Build Specialist: Eric Wagoner
Localization Manager: Rick Terek
Operations Coordinator: John Williams
Manufacturing Support: Laura King; Kathy Hershey
Lead Product Manager, Release Management: Bo Galford
Program Manager, Knowledge Management: Josh Barnhill
Lead Product Manager, Knowledge Management: Janet Wilson
Group Manager, Courseware Infrastructure: David Bramble
Director, Developer Training: Juan Fernando Rivera
General Manager: Robert Stewart

Module 4: Incorporating CDO for Exchange 2000 into a Web Solution iii Instructor Notes
This module provides students with the information necessary to use
Collaboration Data Objects (CDO) to create collaborative solutions based on
the Microsoft
®
Web Storage System. The module introduces CDO, discusses
the various versions of CDO available with Microsoft Windows

retrieve a message by using ActiveX
®
Data Objects (ADO) and then use CDO
for Exchange to send the message, create a meeting, and attach supporting
information and links to the meeting item by using collaborative objects.
In Lab B, Performing Basic Exchange 2000 Administrative Tasks by Using
CDO for Exchange Management, students will create a new public folder,
create a new mailbox, and use CDO for Exchange Management objects to build
and mount a new information store.
Presentation:
170 Minutes

Labs:
60 Minutes
iv Module 4: Incorporating CDO for Exchange 2000 into a Web Solution Materials and Preparation
This section provides the materials and preparation tasks that you need to teach
this module.
Required Materials
To teach this module, you need the following materials:
!
Microsoft PowerPoint
®
file 2019A_04.ppt
!
Module 4, “Incorporating CDO for Exchange 2000 into a Web Solution”

Preparation Tasks

the Configuration object and the IDataSource interface, and explain the
purpose of each. Emphasize that each top-level CDO object stores a
reference to a central Configuration object through a Configuration
property on an associated interface. Explain that all top-level CDO objects
expose an implementation of the IDataSource interface.
!
Adding Messaging Functionality
Describe the Message object. Emphasize that before sending a message, it is
a good practice to resolve each recipient address to avoid getting
undeliverable messages. Explain how Exchange 2000 resolves a recipient’s
address. Next, demonstrate how to create and send a message by using the
Message object and the Addressee object. Lastly, show how to modify the
Multipurpose Internet Mail Extensions (MIME) content in a message.
!
Adding Contact Functionality
Describe the Person object and show how to create contacts by using this
object. Next, show how to search and display contacts in Exchange 2000 by
using CDO and ADO. Explain that Exchange 2000 supports the Internet
industry vCard standard for obtaining contact information through the CDO
Person object. Lastly, show how to export and import contact information
by using the vCard format.
vi Module 4: Incorporating CDO for Exchange 2000 into a Web Solution !
Adding Calendar Functionality
Start this section by explaining that calendar functions in Exchange 2000
can be used to create single or recurring appointments, meeting requests,
and personal and group scheduling. Next, describe the Appointment object.
Explain what a recurring appointment is and describe the steps to create it.

!
The CDO for Exchange Object Model
!
Adding Messaging Functionality
!
Adding Contact Functionality
!
Adding Calendar Functionality
!
Administering Exchange 2000 by Using CDO for
Exchange ManagementYou can access items in the Microsoft
®
Web Storage System by using many
protocols and application programming interfaces (APIs).

Collaboration Data
Objects (CDO) is an API that consists of a powerful set of Component Object
Model (COM) components that you can use to manage folders, messages,
Microsoft Exchange 2000 Server mailboxes, public stores and public folder
hierarchies, appointments, contacts, and all other items in the Web Storage
System.
After completing this module, you will be able to:
!
Describe the various versions of CDO available with Microsoft
Windows
®
2000 and Exchange 2000.

2 Module 4: Incorporating CDO for Exchange 2000 into a Web Solution #
##
#

Introduction to CDO
!
Overview of CDO
!
Implementations of CDOCDO is a tool with which to easily develop collaborative solutions based on the
Web Storage System. This is possible because CDO has a library of objects to
create and manage collaborative data, such as Internet messages, appointments,
contacts, and public folders.
With the exception of CDO for Microsoft Windows NT
®
,

previous versions of
CDO, such as CDO versions 1.1, 1.2, and 1.2.1, relied heavily on MAPI as the
data access and transport format. CDO for Windows 2000 and CDO for
Exchange are based on Internet-defined standards, such as Simple Mail
Transfer Protocol (SMTP) and Network News Transport Protocol (NNTP), and
use standardized data-access formats, such as OLE DB and ActiveX
®
Data

vCard format directly into the Web Storage System or
Active DirectoryCDO has built-in business logic that you can use to easily access Web Storage
System data to create collaborative Web solutions. CDO recognizes
standardized Internet content types, such as Multipurpose Internet Mail
Extensions (MIME), MIME Encapsulation of Aggregate Hypertext Transfer
Protocol Documents (MHTML), vCard, and ICalendar.
Some of the solutions, or applications, that you can develop by using
CDO include:
!
Creating and sending bulk e-mail messages.

!
Appending disclaimers or other notices to e-mail messages sent through
Exchange 2000.
!
Creating personal appointments and group schedules.
!
Creating and sending meeting requests to attendees.
!
Exporting and importing contact information by using the vCard format
directly into the Web Storage System or the Active Directory


directory service.

You can also create collaborative Web solutions based on the Web Storage
System and Active Directory by using CDO in conjunction with ADO version

Implementations of CDO
!
CDO for Windows 2000
$
Builds bulk mailing, transport protocol event sinks, and
Web-based messaging applications
!
CDO for Exchange 2000 Server
$
Builds powerful Outlook-style collaboration applications
using the Web Storage System
!
CDO Workflow Objects
$
Creates process definitions and action tables that model
your application's workflow processes
!
CDO for Exchange Management
$
Administers Exchange mailboxes and serversDifferent versions of CDO are available with the installation of Windows 2000
and Exchange 2000.
CDO for Windows 2000
CDO for Windows 2000 (Cdosys.dll) has an object model that you can use to
develop messaging applications on Windows 2000. CDO for Windows 2000 is
based on the SMTP and NNTP standards and is available as a system
component with Microsoft Windows 2000 Server installations. It is the standard
API that you can use for building bulk mailing, transport protocol event sinks,

completely remodeled and
is no longer dependent on
the MAPI protocol.

Discuss each current
version of CDO. Explain
how CDO for Windows 2000
and CDO for Exchange
relate to previous versions
of CDO. Discuss CDO
Workflow Objects and CDO
for Exchange Management
giving examples of each.
Module 4: Incorporating CDO for Exchange 2000 into a Web Solution 5 CDO for Exchange expands the functionality of the CDO for Windows 2000
messaging components to include objects for calendar and contact management.
Thus you can build powerful Web applications in the style of Microsoft
Outlook
®
2000 by using the Web Storage System. CDO for Exchange is a
server-based object model that can be used only on a computer running
Exchange 2000.
CDO WorkFlow Objects
CDO Workflow Objects for Exchange 2000 Server provides the tools you need
to add workflow to applications that access data from the Web Storage System.
Driven by the Web Storage System event architecture, CDO Workflow Objects
has a built-in workflow engine and custom COM components that you can use
to model your application's workflow processes.

The CDO architecture provides access to the Exchange 2000 Web Storage
System and Active Directory through the following components:
!
Programming interfaces
You can access CDO from any programming language that supports COM,
such as Microsoft Visual Basic
®
and Microsoft Visual C++
®
, and scripting
languages, such as Microsoft Visual Basic Scripting Edition (VBScript) and
Microsoft JScript
®
. All of these languages use the same object library.
!
ADO and OLE DB database access
CDO uses ADO version 2.5 and OLE DB to access Exchange 2000 items
(contacts, messages, and calendar) in the Web Storage System. After ADO
and OLE DB retrieve a record or recordset, CDO can bind to individual
records for easy manipulation. For example, you can use ADO to retrieve
messages in a user’s Inbox and then bind to individual messages by using
CDO to access the properties of each message.
!
ADSI
You can use CDO and ADSI objects together to create new users and
mailboxes, manage users, and contact information in Active Directory. By
using ADSI, you can also easily identify the URLs with a particular user's
mailbox folders, such as their Inbox, Calendar, Drafts, and Contacts folders.
!
DS OLE DB Provider

interact with standardized
Internet, content such as
MIME and ICalendar.
Module 4: Incorporating CDO for Exchange 2000 into a Web Solution 7 !
Supported content
CDO supports standardized Internet content such as MIME, MHTML,
Internet standard e-mail (RFC822), Internet standard news (RFC977),
vCard, and ICalendar. CDO can bind directly to any of these content types
for manipulation. For example, CDO can bind to the MIME content of an
e-mail message and then extract or modify the properties of that content. For more information on RFC822 and RFC977 standards, go to Note
8 Module 4: Incorporating CDO for Exchange 2000 into a Web Solution #
##
#

The CDO for Exchange Object Model
!
Components of the CDO for Exchange Object Model
!

Fields
Appointment
Configuration
IDataSource
Fields
Exceptions
Attendees
BodyParts
Fields
Message
Configuration
IDataSource
BodyParts
Messages
(DropDirectory)
Addressee
Configuration
IDataSource
Fields
CalendarParts
IDataSource
Message
Fields
CalendarMessage Person
Configuration
IDataSource
Fields
Configuration
System. The Item object is similar to an ADO Record object.

Topic Objective
To identify the components
of the CDO for Exchange
object model.
Lead-in
The components of the
CDO for Exchange object
model are Message,
Person, Addressee,
Appointment,
CalendarMessage, Folder,
and Item.
Briefly describe each object
in the CDO for Exchange
object model and discuss its
function. Point out what the
IDataSource interface and
Configuration object have
in common to lead into the
next topic.
10 Module 4: Incorporating CDO for Exchange 2000 into a Web Solution The Configuration Object
!
Stores the Default Configuration Information for All CDO
Top-Level Objects
!

When you send many messages, it is a good practice to create a single
Configuration object and use it with each Message object to optimize
application performance. For example, by using CDO in an Active Server
Pages (ASP) application, you can store the Configuration class instance in the
Session object, and then reuse it for each message sent during that session.
Topic Objective
To describe the
Configuration object and
its function.
Lead-in
Each top-level CDO object
stores a reference to a
central Configuration
object through a
Configuration property on
an associated interface.
Discuss how to use the
Configuration object to
change the default
information for a CDO
object. Describe some
common default settings,
such as SMTP server and
SMTP server port. Discuss
the properties listed in the
table in the student notes
and describe the code
example. Explain how to
create a Configuration
object, configure it, and then

nntpserver
cdoSMTPServer
cdoNNTPServer
Used to indicate the Domain Name System
(DNS) name of the SMTP or NNTP service
host, if messages are sent by using the
SMTP/NNTP protocols.
smtpserverport
nntpserverport
cdoSMTPServerPort
cdoNNTPServerPort
Used to indicate the TCP/IP port of the
SMTP or NNTP service, if messages are
sent using the SMTP/NNTP protocols.

12 Module 4: Incorporating CDO for Exchange 2000 into a Web Solution Using the Configuration Object to Configure a Message
The following VBScript code creates a Configuration object, modifies the
properties of the object through the ADO Fields collection, updates the Fields
collection, and assigns the Configuration object to a Message object through
its Configuration property:
Dim objConfiguration
Set objConfiguration = CreateObject("CDO.Configuration")
Set Flds = objConfiguration.Fields
Flds(cdoSendUsingMethod) = cdoSendUsingPort
Flds(cdoSMTPServer) = "mail.contoso.msft"
Flds(cdoSMTPServerPort) = 25
Flds(cdoSendUserName) = "domain\username"

$
IDataSource.SaveToContainerThe CDO object model uses the IDataSource interface to access data in other
ADO, CDO, and ADSI objects, or to access the data in the Web Storage System
and Active Directory. All top-level CDO objects (Item, Appointment,
Message, Addressee, CalendarMessage, and Person) expose an
implementation of this interface. You can bind (associate or link two objects at
run time) CDO objects to Web Storage System items, ADO objects, ADSI
objects, and other CDO objects by using the methods of the
IDataSource interface.
When you use CDO to create an item in the Web Storage System or Active
Directory, you create a CDO object, modify its properties or streams, and then
bind the object to a new URL, or an existing URL to store the item in the Web
Storage System. To manipulate an existing item in the Web Storage System,
you create a CDO object, bind it to an existing URL, change properties on the
CDO object, and then save the changes back to the URL.
You can bind CDO objects to items in the Web Storage System by using the
following methods:
!
IDataSource.Open
The Open method first binds the specified store item, which is identified by
a URL, and then copies the data to the CDO object.
!
IDataSource.SaveTo
The SaveTo method first binds the item and then saves the current data
stored in the CDO object to the store item.
!
IDataSource.SaveToContainer
#
##
#

Adding Messaging Functionality
!
The Message Object
!
Resolving a Recipient's Address
!
Creating and Sending a Message
!
Accessing and Manipulating the MIME ContentExchange 2000 provides a powerful messaging operating environment for users
to send and receive e-mail messages by supporting a variety of protocols,
including Hypertext Transfer Protocol and Web Distributed Authoring and
Versioning (HTTP/WebDAV), Microsoft OLE DB Provider for Exchange 2000
Server, SMTP, NNTP, IMAP4, and MAPI.
The CDO for Exchange component provides a set of COM classes that you can
use in your application to create, access, modify, and send messages in
standardized Internet content, such as MIME, vCard, and ICalendar.
Topic Objective
To list the topics related to
adding messaging
functionality.
Lead-in

supports the IBodyPart(s) interface that you can use to access the MIME
content in a message.
Messages contain a set of message headers with information, such as the
address of the message recipient and carbon copy (CC) recipients. The most
common message header fields are present as properties on the IMessage
interface, and all of these fields are accessible by using the Message object's
Fields collection.
Topic Objective
To describe the Message
object.
Lead-in
The Message object has
properties and methods with
which to create and
manage messages.
Introduce the Message
object and describe its
purpose. Discuss the
IBodyPart interface it
exposes and describe how
to use it to access the MIME
content of a message.
Discuss each property and
method listed in the tables in
student notes. Be sure to
discuss the
CreateMHTMLBODY
method.
16 Module 4: Incorporating CDO for Exchange 2000 into a Web Solution


Forward Creates and returns another message that can be used to
forward a message.
Post Submits a message to the specified newsgroups.
Reply Creates and returns another message that can be used to
reply to the sender of a message.
ReplyAll Creates and returns another message that can be used to
reply to the sender and all recipients.
Send Sends a message.
CreateMHTMLBODY Converts the contents of an entire Web page into
MHTML-formatted body parts on this message.

Module 4: Incorporating CDO for Exchange 2000 into a Web Solution 17 Resolving a Recipient's Address
!
Exchange Checks Each Address Against Active
Directory or a Contact Folder
!
If an Address Is Found, It Is Considered Resolved
!
If an Address Can Be Matched with More Than One
Entry, It Is Considered to Be AmbiguousBefore attempting to send a message, it is a good practice to resolve each
recipient address to avoid undeliverable messages. You can use the Addressee
object to resolve addresses for recipients of messages. When Exchange 2000
resolves an address, it checks the address against Active Directory or a Contact
folder. If the address is found in a Contact folder or Active Directory, the

names of users in Active
Directory or a Contact
folder. Discuss each
property and method listed
in the tables in the student
notes.
18 Module 4: Incorporating CDO for Exchange 2000 into a Web Solution Addressee Object Methods
The following table lists frequently used methods of the Addressee object.
Name Description

CheckName Attempts to resolve an addressee directory object using the
information specified in the object.
GetFreeBusy Gets the free/busy information for a resolved attendee.
AmbiguousName A collection of all addressees that match the ambiguous criteria
used to resolve a particular addressee.

Module 4: Incorporating CDO for Exchange 2000 into a Web Solution 19 Creating and Sending a Message
Exchange 2000
Exchange 2000
To: ;

Team.Schedule.doc
Word
Attachment

.AddAttachment "t/Docs/logo.gif"
.Send
.Newsgroups = "contoso.public.newsgroup1"
.Post
End With
(code continued on following page)
Topic Objective
To show how to create and
send a message by using
the Message object.
Lead-in
The following VBScript code
shows how to send an e-
mail message with
attachments and how to
resolve a recipient’s address
by using the Addressee
object.
Delivery Tip
Scroll through each line of
code in the example and
explain each property and
method as it is used.


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status