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
oAttachment.Type = "application/vnd.ms-excel"
oAttachment.Name = "report.xls"
See also: