CDO & MAPI Programming with Visual Basic:

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. 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.

Table of contents

  1. CDO & MAPI Programming with Visual Basic
    1. Preface
      1. Who This Book Is For
      2. Organization of This Book
      3. Obtaining the Sample Code
      4. Conventions Used in This Book
      5. How to Contact Us
      6. Acknowledgments
    2. 1. Introduction
    3. 2. MAPI
      1. MAPI Architecture
        1. Service Providers
        2. Client Applications
        3. The MAPI Subsystem
          1. The MAPI Spooler
        4. MAPI Objects
        5. MAPI Properties
        6. MAPI Profiles
        7. The MAPI Session
        8. MAPI Notifications
      2. Other Messaging Technologies
        1. Common Messaging Calls (CMC)
        2. Simple MAPI
        3. The MAPI ActiveX Controls
        4. CDO
        5. The CDO Rendering Library
        6. The CDO for NTS Library
        7. The Outlook Object Model
        8. Simple Mail Transport Protocol (SMTP)
        9. CDO for Windows 2000
        10. CDO for Exchange 2000
      3. Obtaining MAPI
      4. Programmatically Discovering Whether MAPI Is Present
      5. Programmatically Discovering Profile Names and the Default Profile
      6. Summary
    4. 3. Simple MAPI
      1. Accessing APIs from Visual Basic
        1. The Declare Statement
        2. The API Viewer
      2. Establishing a Session
        1. Logging Off
      3. Sending Mail
      4. Sending File Attachments
      5. Reading Mail
      6. Reading File Attachments
      7. Showing the Address Book
      8. Showing Recipient Properties
      9. Microsoft’s Helper Functions
      10. Summary
    5. 4. The MAPI ActiveX Controls
      1. Getting Started
      2. The MAPISession Control
      3. The MAPIMessages Control
        1. Structure of the MAPIMessages Control
      4. Sending Mail
      5. Sending File Attachments
      6. Sending Embedded OLE Objects
      7. Reading Mail
      8. Reading File Attachments
      9. Showing the Address Book
      10. Advanced Features
        1. The Message Class
        2. Requesting a Receipt
        3. The Conversation ID
        4. Showing Properties of a Message Recipient
      11. Miscellanea
      12. Assessing the MAPI Controls
      13. Summary
    6. 5. Collaboration Data Objects
      1. COM
      2. Object Models
      3. The CDO Object Model
        1. The Session Object
        2. InfoStores, Folders, and Messages
        3. Address Books and Addresses
        4. Miscellaneous Objects
      4. Accessing CDO Online Help
      5. CDO Licensing
      6. Where to Go from Here
      7. Summary
    7. 6. An Email Client Application
      1. The Sample Application
      2. Establishing a Session
        1. Handling Errors
      3. Sending Mail
      4. Sending File Attachments
      5. Sending File References
      6. Sending OLE Objects
      7. Sending Embedded Messages
      8. Reading Mail
      9. Reading File Attachments
      10. Reading File References
      11. Reading OLE Objects
      12. Reading Embedded Messages
      13. Forwarding and Replying to Mail
      14. Formatted Text
      15. Showing the Address Book
      16. Summary
    8. 7. Enhancing the Email Client
      1. How CDO Wraps MAPI Objects
      2. Handling Message Items
      3. Working with Folders
      4. Folders with Special Status
      5. Hidden Messages
      6. Working with Address Books
        1. Iterating Through the Address Books
        2. Creating and Retrieving Address Book Entries
        3. Adding a Message Sender to an Address Book
        4. Creating a Distribution List
      7. Filters
      8. Summary
    9. 8. Calendar Folders
      1. Finding the Default Calendar Folder
      2. Appointments and Meetings
        1. AppointmentItem-Specific Properties
        2. AppointmentItem-Specific Methods
      3. Viewing Calendar Contents
      4. Filtering Appointments by StartTime and EndTime
      5. Creating an Appointment
      6. Deleting an Appointment
      7. Creating a Meeting
      8. Getting Free/Busy Information
      9. Recurrence
        1. Daily Recurrence
        2. Weekly Recurrence
        3. Monthly Recurrence
        4. Yearly Recurrence
        5. Properties that Depend on RecurrenceType
        6. Limiting the Number of Recurrences
      10. Summary
    10. 9. Task Folders
      1. Finding the Default Task Folder
      2. Reading Tasks
      3. Creating a Task
      4. Copying, Moving, and Deleting
      5. Using Message Filters with Task Folders
      6. Task Item-Specific Propertiesand the Fields Collection
      7. Summary
    11. 10. Contacts Folders
      1. Finding the Default Contacts Folder
      2. Reading Contact Information
      3. Filtering Contacts
      4. Creating a Contact
      5. Embedding a Contact in an Email
      6. Summary
    12. 11. Web Applications
      1. The Development Environment
      2. The Server Environment
        1. IUSR_ComputerName
        2. Authentication
          1. Basic authentication
          2. NTLM Challenge/Response authentication
      3. ASP Applications and Sessions
      4. Establishing a MAPI Session
      5. Displaying CDO Data
        1. Generating HTML in Script
        2. Generating HTML with the CDO Rendering Library
          1. The CDO Rendering Library object model
          2. Views, formats, and patterns
          3. Rendering a folders collection
          4. Rendering a messages collection
          5. Rendering a Recipients collection
          6. Rendering an AddressEntries collection
          7. Rendering individual MAPI properties
      6. Summary
    13. 12. CDO for Windows 2000
      1. Getting Started
      2. The CDO for Windows 2000Object Model
        1. The Message Class
        2. The Configuration Class
        3. The DropDirectory Class and the Interfaces
      3. Sending Email
        1. Sending Email via SMTP
        2. Sending Email via the SMTP Service Pickup Directory
      4. Receiving Email
      5. Summary
    14. A. Programming Internet Email Protocols
      1. How Email Is Sent on the Internet
        1. SMTP and POP3
      2. The Winsock Control
      3. Establishing a Connection
      4. Sending Commands and Receiving Responses
      5. Sending Email
      6. Retrieving Email
      7. Summary
    15. B. Programming the Outlook Object Model
      1. The Outlook Object Model Diagram
      2. Getting Started
      3. Connecting to Outlook and Establishing a MAPI Session
      4. Sending Email
      5. Reading Email
      6. Summary
    16. C. The Outlook E-mail Security Update
    17. D. Where Am I Running?
      1. 32-Bit Applications
      2. 16-Bit Applications
    18. E. Resources for Messaging Developers
      1. MAPI and CDO Downloads
      2. Discussion Lists
      3. Newsgroups
      4. Messaging-Related Web Sites
      5. O’Reilly & Associates, Inc.
    19. F. Obtaining the Sample Code
      1. Downloading the Code
      2. What’s in the Download
      3. Registering the CdoHelper Component
    20. Index
    21. Colophon

Product information

  • Title: CDO & MAPI Programming with Visual Basic:
  • Author(s):
  • Release date: October 2000
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781565926653