Loads the HtmlBody
property from a file and sets the HtmlBaseLocation
property to the file folder.
Syntax:
[C++]
HRESULT LoadHtmlBody(BSTR file);
[VB]
Sub LoadHtmlBody(file
As String)
Parameters:
file
File path to the html file to load.
Example:
[VB]
Dim oMail As New Mail
oMail.LoadHtmlBody "c:\mails\order_confirmation_template.htm"
oMail.HtmlBody = Replace(oMail.HtmlBody, "%Customer%",
GetCustomerName())