MailMill COM 1.0 Documentation

Type MailAttachment Property:
Gets or sets the attachment MIME Content-Type.
Syntax:
[C++]
HRESULT get_Type(BSTR *pVal);
HRESULT put_Type(BSTR newVal);
[VB]
Property Type As String
Remark:
The Type property is not checked by MailMill. It is up to you to enter a valid Content-Type value.
Example:
[VB]
Dim oAttachment As New MailAttachment
oAttachment.Data = xls     ' Assume xls is a byte array containing an Excel file binary data
oAttachment.Type = "application/vnd.ms-excel"
oAttachment.Name = "report.xls"
See also:
MailAttachment Object

 

Copyright © Active+ Software 2005 - All rights reserved