img img img img img  
Home Development Partners Resellers About  
img   img CDO 1.2.1 (Collaboration Data Objects, version 1.2.1) is a package providing access to Outlook-compatible objects through a COM-based API. Using either CDO or MAPI, a program can connect to a MAPI store, and then perform operations against that store.
CDO 1.2.1 in DELPHI CDO 1.2.1 in DELPHI - Examples and How-To

Microsoft Exchange Server 5.5/2000/2003 compatibles
Microsoft Outlook 97/98/2000/2002/2003 compatibles

CDO 1.2.1 is not supported for use with Outlook 2010

DELPHI 4, 5, 6, 7, 2005, 2006 win32 compatibles
Turbo Delphi Explorer and Turbo Delphi Professional compatibles

We provide source code - not VCL


The DELPHI sources of CDO 1.2.1 in DELPHI examples are delivered via electronic Internet download after registration
 
Description: Application as Lesson Source
PART I
Logging On and working with GAL
   
Example # 1

Log in Microsoft Exchange Server and
Query User Identity

How to:
Use CDO.Session Object
Use Session.Logon
Use Session.CurrentUser
Use AddressEntry
Find type of AddressEntry
Work with Fields collection
Work with Field property
Use Field.ID propery
Get Field.Value by MAPI TAG
Use Session.LogOff
...


Example1

(221 KB)


In package

Example # 2
Retrieve Microsoft Exchange GAL (Global Address List)

global address list
(GAL) A MAPI address book container that holds recipient entries for an entire organization and is available to all e-mail users in that organization.

Include some steps
from Example #1 and


How to:
Get Global Address List
Use AddressEntries
Use GetFirst
Use GetNext
Link AddressEntry.DisplayType with image
Get Recipient Display Name
Get Recipient SMTP e-mail address
...



Example2

(241 KB)


In package
Example # 3
Retrieve Microsoft Exchange "Light" Hierarchy
(by Global Address List)

Hierarchy Viewer
A hierarchy viewer is a user interface component that is used for displaying folder and address book container hierarchy tables. Hierarchy viewers can display members of the hierarchy at different levels, expanding and contracting each level on demand.

How to:
Get Global Address List
Use AddressEntries
Build "Light" Tree
...


Example3

(226 KB)


In package
Example # 4
Writing a small Hierarchy Viewer

Now we will write small GAL Hierarchy Viewer. What must do it:
- must show GAL
- must show Hierarchy
- must show Organization
- must show Sites
- must show Containers in each Site
- must show recipients in each container


Example4

(250 KB)


In package
PART II
Working with Private Information Store (Mailbox)
   
Example # 5
Log in Microsoft Exchange Server and
Getting Exchange Private Store Tree

In this example we will write small Exchange Private Store
(mailbox) Hierarchy Viewer.

How to:
Open Mailbox
Find Exchange Private Store
Open Exchange Private Store
InfoStores collection
Use InfoStore Object
Find 'RootFolder'
Enumerate IPM Subtree
Folders Collection
etc..


Example5

(227 KB)


In package

Example # 6
Getting Exchange Mailbox and enumerate items
(messages) in each folder 

How to:
Get Container Class
ex. IPM.Note, IPM.Contact, IPM.Task...

Enumerate messages in MAPI Folder
Get Message Subject
How to get Message properties
Work with Fields Collection
Work with fields
etc..



Example6

(251 KB)


In package

Example # 7
How to build a SIMPLE Mailbox reader (agent) with CDO and DELPHI

img

The sample (MAIL Reader) demonstrates how-to:
Login to Exchange Server
Get own e-mail address
Get available Information Stores
Get and work with Information Store Folders Collection
Get and work with Folder
Get and work with Messages (enumerate, read, delete, make it as read or unread)
Work with fields and more



Example7

(270 KB)


In package
BY REQUEST
(You ask- we create)
   
#1 How to create Appointment/Meeting from DELPHI

This example show how to create and send Meeting request
with CDO and DELPHI.

The example use as basis Example # 7. 
This is First Lesson created for "By Request"


CDOAppt

(279 KB)


In package

Refund requests will not be accepted, and no refund will be granted.


DELPHI 5 Sources for PART I & II  is available after registration
(381 KB, Password protected)
 
  Refund Policy
There is NO refund policy attached due to the nature of this package.
When you gain access to this source code, you have virtually unlimited possibilities of doing anything (or nothing) with it.
Having said that, we won't have any idea as to what you will do next.
So if you perceive this Policy as risky because of the "no refund" policy or don't have any solid plans with the source code or you are lazy "component based" developer, we would kindly advise you NOT to purchase this package.
  The Messaging API is a COM-like API that provides access to the contents of messaging stores. CDO 1.2.1 (Collaboration Data Objects, version 1.2.1) is a package providing access to Outlook-compatible objects through a COM-based API. Using either CDO or MAPI, a program can connect to a MAPI store, and then perform operations against that store. Starting with Exchange 2007, Microsoft will distribute the MAPI client libraries and CDO 1.2.1 as a Web download -  Microsoft Exchange Server MAPI Client and Collaboration Data Objects 1.2.1  - from Microsoft WEB site

See also: Installing CDO with Microsoft Office Outlook
   
 
At IMIBO we'll be pleased to create this masterpiece of code which explicitly fits your needs.
We offer individual consulting services to optimize the organization of your development processes.  
Call us today!
Copyright © 2021 IMIBO
Privacy Statement