InboundEmail.BinaryAttachment Class

An InboundEmail object stores binary attachments in an InboundEmail.BinaryAttachment object.

Namespace

Messaging

Usage

Examples of binary attachments include image, audio, application, and video files.

InboundEmail.BinaryAttachment Constructors

The following are constructors for InboundEmail.BinaryAttachment.

InboundEmail.BinaryAttachment()

Creates a new instance of the Messaging.InboundEmail.BinaryAttachment class.

Signature

public InboundEmail.BinaryAttachment()

InboundEmail.BinaryAttachment Properties

The following are properties for InboundEmail.BinaryAttachment.

body

The body of the attachment.

Signature

public Blob body {get; set;}

Property Value

Type: Blob

fileName

The name of the attached file.

Signature

public String fileName {get; set;}

Property Value

Type: String

headers

Any header values associated with the attachment. Examples of header names include Content-Type, Content-Transfer-Encoding, and Content-ID.

Signature

public List<Messaging.InboundEmail.Header> headers {get; set;}

Property Value

Type: List<Messaging.InboundEmail.Header>

mimeTypeSubType

The primary and sub MIME-type.

Signature

public String mimeTypeSubType {get; set;}

Property Value

Type: String