MAPI.Kit for Delphi – Examples
MAPI.Kit Intermediate Examples
Nine console programs on the Outlook items and the tools around them: contacts, appointments, tasks, journal entries and notes, recurring series, restrictions, the address book, named properties, color categories, MAPI profiles, copying and moving, and sending mail. The examples that write work in a new .pst file of their own; the one that sends sends nothing without a profile, the recipients and a confirmation.
Download all 9 intermediate examples
All 9 examples, compiled and signed (Win32 and Win64)
Source code of all 9 examples (Delphi 10.3 Rio – Delphi 13 Florence)
The source code needs the MAPI.Kit library: it comes in the free DCU packages, one per Delphi version.
The examples
Example #9 – Contacts, appointments, tasks, journal entries and notes
The typed item classes: one item of every kind created in its default folder and read back.
Example #10 – Recurring appointments: series, exceptions, deleted occurrences
A weekly and a monthly series in one call each, an exception, a deleted occurrence, the next occurrences.
Example #11 – Find messages with restrictions
FindAll, Filter, a flag, the recipients of sent messages and a date range of the calendar.
Example #12 – The address book: lists, entries and resolving names
The address lists, the entries of a list, names resolved without a dialog, a one-off address.
Example #13 – Named properties with the property accessor
Outlook’s schema names: user-defined properties written, read, deleted and listed.
Example #14 – Color categories: the master list and the categories of an item
The master category list read and extended, the categories of an item.
Example #15 – MAPI profiles and their services
The profiles and their services; a profile created, used and deleted again.
Example #16 – Copy, move and delete messages and folders
Messages and folders copied, moved and deleted, with the counts after every step.
Example #28 – Send an e-mail
A message with an HTML body and an attachment, the sending account, Send – or a dry run.
