Method 1: One approach is to create the HTML content using your favorite HTML editor. Save it as an .htm file, and then use one of these methods to get it into the Outlook message:
Method 2: Another way to create an HTML message with really rich HTML tags is to use Microsoft Word to create the document, then choose File | Send To | Mail Recipient. This adds To, Cc, and Subject boxes to the top of the Word window, where you can fill in the recipient address and subject. When you send the message, Word uses HTML format. Unfortunately, in Word 2000, it also bloats the message with several KB of Office-specific XML formatting information. Word 2002, on the other hand, provides a way to strip the XML. You'll find this Filter HTML before sending option in Word 2002 under Tools | Options | General | E-mail Options, on the General tab.
Method 3: Outlook 2002 provides yet another method: Simply use Word as your e-mail editor (Tools | Options | Mail Format). WordMail in Office XP is much better than in previous versions. You can use all the Word composition tools and choose whether to send the message in plain text, HTML or RTF format.
With WordMail as your editor, you can also edit the HTML source directly if you have the Web Scripting component from Office XP installed. You must add the HTML Source command to your toolbar (View | Toolbars | Customize). Normally, Word does not display this command unless you are editing an .htm file. I have tried this method only in Office XP, but it might also work in Office 2000.
Method 4: Use code to create an Outlook MailItem object (objMsg in the snippet below), then use FileSystemObject methods to read the contents of a saved .htm file:
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.OpenTextFile("c:\testfile.htm", _
ForReading)
strText = ts.ReadAll
objMsg.HTMLBody = strText
Method 5: Create a new document in Microsoft FrontPage, then use FrontPage's File | Send command. (We tried this in Office XP, but not Office 2000 yet.) The resulting message will include an extraneous two line feeds and horizontal line at the top, but you can easily delete these. This method preserves internal bookmarks. (Thanks to Stephen Green for this tip.)
Be careful with your <img> tags if you use this method, because the message always uses the exact tag from your document, even if you have Outlook set to embed images in outgoing HTML messages. Therefore, the <img> tags will need to point to files available on the Internet. This, in turn, may annoy people who use dial-up Internet connections, since Outlook will try to connect to try to display the images when the recipient opens or previews the message.