---
schema_version: "1"
id: 02eeab5bdd30f6637faea3fe541aa3f96ae3ace3376bab524db5f7723a7dc7a1
title: InboundEmailResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_classes_email_inbound_result.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_result.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d0ca523c6426591ed33ceaec14b17ab05673293480a0b94c4b52260a1cb6727d
description: 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.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.A value that indicates whether the email was successfully processed.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Messaging.htm "The Messaging namespace provides classes and methods for Salesforce notifications and email functionality.")

## InboundEmailResult Properties

The following are properties for InboundEmailResult.

- **[message](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_result.htm#apex_Messaging_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.
- **[success](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_result.htm#apex_Messaging_InboundEmailResult_success)**  
    A value that indicates whether the email was successfully processed.

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### success

A value that indicates whether the email was successfully processed.

#### Signature

public Boolean success {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

#### 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.