HOWTO: Send an HTML Message Using MAPI and CDOID: Q216344
|
Microsoft Outlook 98 has the ability to send, receive, and render e-mail messages with bodies of different types. Such types include Plain Text, Rich Text Format (RTF), and HyperText Markup Language (HTML). This article shows how to convert the RTF formatted message content to HTML, programmatically.
Sending an HTML-based message is very similar to sending a message in Rich Text Format. The only difference is that you need to modify the stream to indicate that it is from HTML instead of plain text or RTF.
The RTF stream is made up of the plain text of the message as well as several tags that tell Outlook how to render the message. The following tags are used for rendering the different formats supported by Outlook:
Dim strRTFStream as String
strRTFStream = "\fromhtml1" & strRTFStream
For additional information about creating and storing message text to an RTF stream, please see the following article in the Microsoft Knowledge Base:
Q172038 FILE: DLL to Read and Write RTF with Active Messaging
Additional query words: kbCDO121 kbMsg kbMAPI100
Keywords : kbhtml kbCDO121 kbMsg kbMAPI100 kbGrpMsg
Version : WINDOWS:1.0,1.21
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: April 7, 1999