MailMill .NET Class Library

MailAttachment.Type Property

Gets or sets the attachment MIME Content-Type.

public string Type {get; set;}

Remarks

The Type property is not checked by MailMill. It is up to you to enter a valid Content-Type value.

Example

This sample shows how to set an attachment Content-Type.

MailAttachment oAttachment = 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 Class | MailMill Namespace