Imports specified html string with embedded pictures to current email.
[Syntax] C++: HRESULT ImportHtml( BSTR Html, BSTR BasePath, long* pVal ) Visual Basic: ImportHtml( Html As String, BasePath As String ) As Long C#: long ImportHtml( string Html, string BasePath )
Html
Html source code to import
BasePath
Because ImportHtml method automatically imports linked pictures into current email as embedded pictures, if the link uses relative path, then BasePath helps ansmtp to change relative path to absolute path. e.g. picture locates at "http://emailarchitect.net/test.gif", and in html source it presents <img src="test.gif">, then the BasePath should be "http://emailarchitect.net/"
Return Values
Return zero if successful, return non-zero if failed.
Remarks
This method loads html string to email body text, and automatically adds all pictures involved as embedded attachments to this email. This method is very simliar with ImportMailEx method.
This method automatically sets email body format to 1 (HTML).
See Also
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.