Skip to Content
CDO & MAPI Programming with Visual Basic:
book

CDO & MAPI Programming with Visual Basic:

by Dave Grundgeiger
October 2000
Intermediate to advanced
384 pages
10h 22m
English
O'Reilly Media, Inc.
Content preview from CDO & MAPI Programming with Visual Basic:

Advanced Features

The MAPI controls do offer some features beyond simply sending and receiving messages. These features are the message class, requesting a receipt, tracking a conversation thread, and displaying a recipient’s properties.

The Message Class

All MAPI messages have a message class, which is a string that broadly differentiates types of messages. The MsgType property of the MAPIMessages control gives you access to the message class. The most common message class is IPM.Note, which signifies a generic email message. If you leave the MsgType property blank when composing a message, MAPI automatically gives the message a class of IPM.Note.

A common use of message classes is to tell the receiving mail client that a custom form should be used when displaying the message. For example, if you’ve created a custom form in Outlook, Outlook uses that form when displaying any message with a message class of IPM.Note. FormName (where FormName is the name you gave to the form). Be aware that if the receiving mail client doesn’t recognize the message class, it will likely complain to the user, who may not know what the problem is.

To send a message using a custom message class, you must be sending to a recipient that is capable of receiving messages in Microsoft Exchange RTF, and the recipient’s address book entry must indicate this fact, as shown in Figure 4-7.

If you are writing an application that reads and responds to messages only of a certain class, you may want to set the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Excel® 2007 VBA Programmer's Reference

Excel® 2007 VBA Programmer's Reference

John Green, Stephen Bullen, Rob Bovey, Michael Alexander
COM Programming with Microsoft® .NET

COM Programming with Microsoft® .NET

John Paul Mueller, Julian Templeman

Publisher Resources

ISBN: 156592665XSupplemental ContentCatalog PageErrata