InboundEmail.TextAttachment Class

An InboundEmail object stores text attachments in an InboundEmail.TextAttachment object.

Messaging

The text attachments can be any of the following:

The following are constructors for InboundEmail.TextAttachment.

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

public InboundEmail.TextAttachment()

The following are properties for InboundEmail.TextAttachment.

  • body

    The body of the attachment.

  • bodyIsTruncated

    Indicates whether the attachment body text is truncated (true) or not (false.)

  • charset

    The original character set of the body field. The body is re-encoded as UTF-8 as input to the Apex method.

  • 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 String body {get; set;}

Type: String

Indicates whether the attachment body text is truncated (true) or not (false.)

public Boolean bodyIsTruncated {get; set;}

Type: Boolean

The original character set of the body field. The body is re-encoded as UTF-8 as input to the Apex method.

public String charset {get; set;}

Type: String

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