Attach a binary stream as attachment to current email with customized file name.
[Syntax] Visual C++: HRESULT AddAttachment1( BSTR FileName, VARIANT Stream, long* pVal ) Visual Basic: AddAttachment1( FileName As String, Stream As Variant ) As Long
FileName
File name to be displayed in current email.
Stream
Binary stream of file content, it should be a byte array.
Return Values
If this method succeeds, the return value is zero; otherwise the return value is non-zero.
See Also