InboundEmail.BinaryAttachment Class
An InboundEmail object stores binary attachments in an InboundEmail.BinaryAttachment object.
Examples of binary attachments include image, audio, application, and video files.
The following are constructors for InboundEmail.BinaryAttachment.
-
InboundEmail.BinaryAttachment()
Creates a new instance of the
Messaging.InboundEmail.BinaryAttachmentclass.
Creates a new instance of the Messaging.InboundEmail.BinaryAttachment class.
public InboundEmail.BinaryAttachment()
The following are properties for InboundEmail.BinaryAttachment.
-
The body of the attachment.
-
The name of the attached file.
-
Any header values associated with the attachment. Examples of header names include
Content-Type,Content-Transfer-Encoding, andContent-ID. -
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