Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending HTML e-mail from Visual Basic

Status
Not open for further replies.

ninja800

Programmer
Joined
Jul 22, 2003
Messages
8
Location
US
Hi,

Is there any way I can send HTML e-mail using CDO 1.21?

Thanks in advance
 
Not easily, only the plain text message is exposed by CDO. Can be done in C++ by linking directly to the MAPI dlls and processing the message body as an RTF strean with HTML format tags. This may be adaptable to VB, I've called mapi32.dll functions successfully from VB. Take a look at:



The simplest way is to use the Outlook object model to create the mail item then set its HTMLBody property to a HTML formatted string.

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top