InboundEmail.BinaryAttachment Class

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

Messaging

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

The following are constructors for InboundEmail.BinaryAttachment.

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

public InboundEmail.BinaryAttachment()

The following are properties for InboundEmail.BinaryAttachment.

  • body

    The body of the attachment.

  • fileName

    The name of the attached file.

  • headers

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

  • mimeTypeSubType

    The primary and sub MIME-type.

The body of the attachment.

public Blob body {get; set;}

Type: Blob

The name of the attached file.

public String fileName {get; set;}

Type: String

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

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

Type: List<Messaging.InboundEmail.Header>

The primary and sub MIME-type.

public String mimeTypeSubType {get; set;}

Type: String