MailMill COM 1.0 Documentation

Data MailAttachment Property:
Gets or sets the attachment file content.
Syntax:
[C++]
HRESULT get_Data(VARIANT *pVal);
HRESULT put_Data(VARIANT newVal);
[VB]
Property Data As Variant
Remark:
The Data property can either be an array of byte or a string value. If Data contains a string value, it will be converted from UNICODE using the Mail.Charset character set encoding. If Data is set to a value that is neither a string nor a byte array, the value will be converted to string if possible or an error will occur.
Example:
[VB]
Dim oAttachment As New MailAttachment
oAttachment.Data = "Hello world!"
oAttachment.Type = "text/plain"
oAttachment.Name = "test.txt"
See also:
MailAttachment Object

 

Copyright © Active+ Software 2005 - All rights reserved