ImportHTML Method

<< Click to Display Table of Contents >>

Navigation:  Reference > MailMessage >

ImportHTML Method

 

ImportHTML method imports HTML file with embedded images.

 

Syntax

 

[Visual Basic]


Sub ImportHTML(strFilename As String)

 

Example:

 

objMailMessage.ImportHTML "c:\files\email.html"

 

[VBScript]


Sub ImportHTML(strFilename)

 

Example:

 

objMailMessage.ImportHTML "c:\files\email.html"

 

[C#]


void ImportHTML(string strFilename);

 

Example:

 

objMailMessage.ImportHTML( "c:\\files\\email.html" );

 

[C++]


HRESULT ImportHTML(BSTR strFilename);

 

Example:

 

spMailMessage->ImportHTML("c:\\files\\email.html");

 

 

Parameters

 

strFilename [in]

Filename of the HTML file to be imported.

 

Return value

 

None.

 

Remarks

 

Use ImportHTML method to create HTML e-mail with embedded images from a file on disk. This method imports specified HTML file, adds all images referenced in the HTML as inline attachments, modifies HTML as needed and fills out the MessageBody. Only images located on disk are added as attachments. Images from the web (http:// or https:// links in HTML) are not attached. Please note that the current version of AddEmail does not import images specified in CSS using url values.