Computers and devices are more connected now than ever before. Why? Because the humans who use those computers need to collaborate. We need to share information, and we need to do it quickly, without regard to the physical distance that separates us. Corporate solution developers now more than ever have the opportunity and responsibility to enable people to communicate in ways never before possible.
CDO and MAPI Programming with Visual Basic: Developing Mail and Messaging Applications dives deep into Microsoft's Collaboration Data Objects (CDO) and the Messaging Application Programming Interface (MAPI), then moves into succinct explanations of the types of useful messaging applications that can be written in Visual Basic.
Microsoft has given the Visual Basic community Collaboration Data Objects (CDO)--a technology that goes far beyond simple email, fully into the realm of information workflow. CDO enables Visual Basic applications to exchange not only classic email, but in fact any information in a straightforward and easy way. The Internet--sometimes seen as a barrier by developers--is turned into an open pipe, ready to take your application's data around the world. Routing documents and building email list servers is just the beginning. Harness the power of worldwide communication in your everyday business applications.
MAPI is the cornerstone of messaging on the Windows platforms, and profoundly influences the way you will write your collaboration applications. Understanding this technology lays the foundation for adding effective collaboration capabilities to your own applications.
CDO and MAPI Programming with Visual Basic: Developing Mail and Messaging Applications fills a gap in an exciting and relatively young, yet popular, technology that lacks adequate documentation.
Chapter 1 Introduction
Chapter 2 MAPI
MAPI Architecture
Other Messaging Technologies
Obtaining MAPI
Programmatically Discovering Whether MAPI Is Present
Programmatically Discovering Profile Names and the Default Profile
Summary
Chapter 3 Simple MAPI
Accessing APIs from Visual Basic
Establishing a Session
Sending Mail
Sending File Attachments
Reading Mail
Reading File Attachments
Showing the Address Book
Showing Recipient Properties
Microsoft’s Helper Functions
Summary
Chapter 4 The MAPI ActiveX Controls
Getting Started
The MAPISession Control
The MAPIMessages Control
Sending Mail
Sending File Attachments
Sending Embedded OLE Objects
Reading Mail
Reading File Attachments
Showing the Address Book
Advanced Features
Miscellanea
Assessing the MAPI Controls
Summary
Chapter 5 Collaboration Data Objects
COM
Object Models
The CDO Object Model
Accessing CDO Online Help
CDO Licensing
Where to Go from Here
Summary
Chapter 6 An Email Client Application
The Sample Application
Establishing a Session
Sending Mail
Sending File Attachments
Sending File References
Sending OLE Objects
Sending Embedded Messages
Reading Mail
Reading File Attachments
Reading File References
Reading OLE Objects
Reading Embedded Messages
Forwarding and Replying to Mail
Formatted Text
Showing the Address Book
Summary
Chapter 7 Enhancing the Email Client
How CDO Wraps MAPI Objects
Handling Message Items
Working with Folders
Folders with Special Status
Hidden Messages
Working with Address Books
Filters
Summary
Chapter 8 Calendar Folders
Finding the Default Calendar Folder
Appointments and Meetings
Viewing Calendar Contents
Filtering Appointments by StartTime and EndTime
Creating an Appointment
Deleting an Appointment
Creating a Meeting
Getting Free/Busy Information
Recurrence
Summary
Chapter 9 Task Folders
Finding the Default Task Folder
Reading Tasks
Creating a Task
Copying, Moving, and Deleting
Using Message Filters with Task Folders
Task Item-Specific Propertiesand the Fields Collection
Summary
Chapter 10 Contacts Folders
Finding the Default Contacts Folder
Reading Contact Information
Filtering Contacts
Creating a Contact
Embedding a Contact in an Email
Summary
Chapter 11 Web Applications
The Development Environment
The Server Environment
ASP Applications and Sessions
Establishing a MAPI Session
Displaying CDO Data
Summary
Chapter 12 CDO for Windows 2000
Getting Started
The CDO for Windows 2000Object Model
Sending Email
Receiving Email
Summary
Appendix Programming Internet Email Protocols
How Email Is Sent on the Internet
The Winsock Control
Establishing a Connection
Sending Commands and Receiving Responses
Sending Email
Retrieving Email
Summary
Appendix Programming the Outlook Object Model
The Outlook Object Model Diagram
Getting Started
Connecting to Outlook and Establishing a MAPI Session
Dave Grundgeiger is a senior software engineer at Esker Software . Dave's research interests include artificial intelligence, with particular interests in both natural language processing and robotics. He is especially interested in AI techniques that facilitate human-like interaction with computers. Dave has written for MSDN Magazine and C/C++ Users Journal and is the author of O'Reilly's Programming Visual Basic .NET and CDO & MAPI Programming with Visual Basic.
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of CDO & MAPI Programming with Visual Basic is a dove. Doves belong to the class Aves (birds) and the order Columbiformes (doves and pigeons), to which the now-extinct dodo bird, Raphus cucullatus, also belongs. Their family, Columbidae, includes over 300 species of pigeons and doves, including the common rock dove or feral pigeon (Columba livia. Leanne Soylemez was the production editor for CDO & MAPI Programming with Visual Basic. Audrey Doyle was the copyeditor. Nancy Wolfe Kotary and Sarah Jane Shangraw provided quality control. Nancy Crumpton wrote the index, and Brenda Miller edited it.
Ellie Volckhausen designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original illustration created by Susan Hart. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font.
Alicia Cech and David Futato designed the interior layout based on a series design by Nancy Priest. Mike Sierra implemented the design in FrameMaker 5.5.6. The text and heading fonts are ITC Garamond Light and Garamond Book. The illustrations that appear in the book were produced by Robert Romano using Macromedia FreeHand 8 and Adobe Photoshop 5. This colophon was written by Leanne Soylemez.
Whenever possible, our books use a durable and flexible lay-flat binding. If the page count exceeds this binding's limit, perfect binding is used.
Comments about O'Reilly Media CDO & MAPI Programming with Visual Basic::
The sample application does not run "out of the box" under Windows 2000. It just hangs during the splash. More importantly, the so called "sample code" available for the book is just a simple VB application and C++ DLL and does not include many of the various useful (and sometimes long) snippets of code from the text. Be prepared for some (re)typing. Makes you wonder why the author constantly brags about his coding solutions for various problems. Cough up all the code!!! It seems like the quality of O'Reilly books has been slipping over the last year or two. Wait for the second edition.
7/5/2001
4.0
CDO & MAPI Programming with Visual Basic Review
By will richmond
from Undisclosed
Comments about O'Reilly Media CDO & MAPI Programming with Visual Basic::
Very good history and future of CDO & MAPI. Very good explanation of CDO/MAPI objects, classes and methods. Very good code examples. Nice Factoids too. All in all very good book, which has paid off many times over! Between 4 and 5 owls.
2/11/2001
(2 of 2 customers found this review helpful)
5.0
CDO & MAPI Programming with Visual Basic Review
By Ruckriegel, Rudolf
from Undisclosed
Comments about O'Reilly Media CDO & MAPI Programming with Visual Basic::
The book CDO & MAPI is a very good book for explaining programmig with CDO and MAPI. I am a programmer on an AS/400 and so I am a newcomer in Visual Basic. So the bigges problem is to get the right books for the problems I have to solve in our projects even in the windows world.
This book is not easy to read for a newcomer, but it explains everything about CDO adn MAPI very well. It is really worth the money I paid. The only thing that could be better is, that the code for the examples is complete and not several parts on several pages.
But all in all a very good book like all the other O'reilly books.
Thanks to Mr. Grundgeiger
Sincerly
R. Ruckriegel
2/4/2001
(1 of 1 customers found this review helpful)
4.0
CDO & MAPI Programming with Visual Basic Review
By Gabriel Chalumeau
from Undisclosed
Comments about O'Reilly Media CDO & MAPI Programming with Visual Basic::
A very great book in working with MAPI. It gives you options in how you implement MAPI in your client application. The stuff works. Thanks a lot guys.
Gabriel
12/22/2000
4.0
CDO & MAPI Programming with Visual Basic Review
By David Fernandez
from Undisclosed
Comments about O'Reilly Media CDO & MAPI Programming with Visual Basic::