Message Object : AddHtml Method |
Visual Basic |
---|
Public Sub AddHtml( _ ByVal FileName As String _ ) |
This method provides an easy way to create a ready-to-send HTML email message. When the method is called, the HTML file specified by FileName is grabbed and added as a part. The text from this file is also added as a part for any mail reader that cannot read HTML. All images referenced by the HTML text (using "img" tags) are added as parts to the message.
It is not advised to alter the Message object once it has been created using the AddHtml method.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):