MailItem.BodyFormat Property (Outlook)
Office 2010
Returns or sets an OlBodyFormat constant indicating the format of the body text. Read/write.
The following Microsoft Visual Basic for Applications (VBA) example creates a new MailItem object and sets the BodyFormat property to olFormatHTML. The body text of the e-mail item will now appear in HTML format.
Sub CreateHTMLMail() 'Creates a new e-mail item and modifies its properties. Dim objMail As MailItem 'Create mail item Set objMail = Application.CreateItem(olMailItem) With objMail 'Set body format to HTML .BodyFormat = olFormatHTML .HTMLBody = "<HTML><H2>The body of this message will appear in HTML.</H2><BODY>Type the message text here. </BODY></HTML>" .Display End With End Sub