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.

InboundEmailResult Class

The InboundEmailResult object is used to return the result of the email service. If this object is null, the result is assumed to be successful.

Namespace

Messaging

InboundEmailResult Properties

The following are properties for InboundEmailResult.

message

A message that Salesforce returns in the body of a reply email. This field can be populated with text irrespective of the value returned by the Success field.

Signature

public String message {get; set;}

Property Value

Type: String

success

A value that indicates whether the email was successfully processed.

Signature

public Boolean success {get; set;}

Property Value

Type: Boolean

Usage

If false, Salesforce rejects the inbound email and sends a reply email to the original sender containing the message specified in the Message field.