ImportMailEx Method

Imports specified html file or URL with embedded pictures to current email.

[Syntax]
C++: HRESULT ImportMailEx( BSTR strFile, long* pVal )
Visual Basic: ImportMailEx( strFile As String ) As Long
C#: long ImportMailEx( string strFile )

Parameter:

strFile

A vaild file or URL with full path.

Return Values

Return zero if successful, return non-zero if failed.

Remarks

This method loads a local html to email body text, and automatically adds all pictures involved as embedded attachments to this email. All pictures must be in your local disk, otherwise this method couldn't add all pictures correctly.

This method automatically sets email body format to 1 (HTML).

See Also

ConvertHTML Method
BodyText Property


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.