Amazon.co.uk
MAPI--the Messaging API--of course, isn't an API. It uses COM. It also isn't directly accessible from Visual Basic, which is why you need CDO. MAPI is a game of two halves. The original MAPI is accessible via VB API calls. It was replaced with Extended MAPI and renamed to Simple MAPI. In
CDO and MAPI Programming with Visual Basic the author covers Simple MAPI, used for client apps, for backward compatibility. As he points out, it's useful when all you want to do is send an e-mail from an application and don't need the complexity of Extended MAPI.
The good stuff starts in chapter five where it is explained how VB's access to COM is, bizarrely, inferior to CDO's COM access. In practice, a useful aspect of this book is finding out which bits of Microsoft's messaging technology go where, what can get at them and how to locate and install the various files essential to making it all work.
As you would expect, you get to build a fully featured mail client which exercises most of MAPI. There is also an introduction to using the CDO Rendering Library on servers with IIS and ASP. The server side gets more coverage with a discussion of CDO for Windows 2000, aimed at creating server side apps. Unlike CDO 1.21 it doesn't use MAPI.
Even Simple MAPI is so complex, often requiring what look like duplicate calls to work, that Microsoft created helper applications for it; but the author successfully sends the message that CDO makes using MAPI more straightforward than you might think. --Steve Patient
Book Description
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.