Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
InboundEmail Class
Namespace
InboundEmail Properties
The following are properties for InboundEmail.
authenticationResults
Signature
public InboundEmail.AuthenticationResult[] authenticationResults {get; set;}
Property Value
Usage
Examples of authentication results include dkim, dmarc, and spf.
binaryAttachments
Signature
public InboundEmail.BinaryAttachment[] binaryAttachments {get; set;}
Property Value
Type: InboundEmail.BinaryAttachment[]
ccAddresses
Signature
public String[] ccAddresses {get; set;}
Property Value
Type: String[]
fromAddress
Signature
public String fromAddress {get; set;}
Property Value
Type: String
fromName
Signature
public String fromName {get; set;}
Property Value
Type: String
headers
Signature
public InboundEmail.Header[] headers {get; set;}
Property Value
Type: InboundEmail.Header[]
Usage
The list of the RFC 2822 headers includes:
- Recieved from
- Custom headers
- Message-ID
- Date
htmlBody
Signature
public String htmlBody {get; set;}
Property Value
Type: String
htmlBodyIsTruncated
Signature
public Boolean htmlBodyIsTruncated {get; set;}
Property Value
Type: Boolean
inReplyTo
Signature
public String inReplyTo {get; set;}
Property Value
Type: String
messageId
Signature
public String messageId {get; set;}
Property Value
Type: String
plainTextBody
Signature
public String plainTextBody {get; set;}
Property Value
Type: String
plainTextBodyIsTruncated
Signature
public Boolean plainTextBodyIsTruncated {get; set;}
Property Value
Type: Boolean
references
Signature
public String[] references {get; set;}
Property Value
Type: String[]
replyTo
Signature
public String replyTo {get; set;}
Property Value
Type: String
Usage
If there is no reply-to header, this field is identical to the fromAddress field.
subject
Signature
public String subject {get; set;}
Property Value
Type: String
textAttachments
Signature
public InboundEmail.TextAttachment[] textAttachments {get; set;}
Property Value
Type: InboundEmail.TextAttachment[]
Usage
- Attachments with a Multipurpose Internet Mail Extension (MIME) type of text
- Attachments with a MIME type of application/octet-stream and a file name that ends with either a .vcf or .vcs extension. These are saved as text/x-vcard and text/calendar MIME types, respectively.
toAddresses
Signature
public String[] toAddresses {get; set;}
Property Value
Type: String[]