Add an embedded attachment file to current email with customized file name
[Syntax] C++: HRESULT AddInlineEx( BSTR strFile, BSTR strAlt, BSTR* pVal ) Visual Basic: AddInlineEx( strFile As String, strAlt As String ) As String C#: string AddInlineEx( string strFile, string strAlt )
strFile
File or URL to be added.
strAlt
File name to be displayed in current email.
Return Values
If this method succeeds, the return value is Content-ID generated automatically by this method; otherwise the return value is null.
In some cases, the e-mail body includes a hyper-link which refers to a picture. In order to embed the picture in current email, you can use AddInline/AddInlineEx method. First developer can use AddInline/AddInlineEx method to add a picture to an e-mail, then change the hyper-link so that it points to <img src="cid:Content-ID">. This Content-ID is returned by this method.
ImportMailEx method provides a way to import html with embedded pictures to email easily.
See Also
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.