---
schema_version: "1"
id: d47323041c63b0265fa0f6ff413eb0f93e32fa6e54b58e01825bfdd7937eae55
title: InboundEnvelope Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_classes_email_inbound_envelope.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_envelope.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 80c19f2357ff5df5c44a635a15df543ea5b4cc79c064dbd99858bcaf621a29ea
description: The InboundEnvelope object stores the envelope information associated with the inbound email, and has the following fields.The name that appears in the From field of the envelope, if any.The name that appears in the To field of the envelope, if any.
---
# InboundEnvelope Class

The InboundEnvelope object stores the envelope information associated with the inbound email, and has the following fields.

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

## InboundEnvelope Properties

The following are properties for InboundEnvelope.

- **[fromAddress](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_envelope.htm#apex_Messaging_InboundEnvelope_fromAddress)**  
    The name that appears in the From field of the envelope, if any.
- **[toAddress](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_envelope.htm#apex_Messaging_InboundEnvelope_toAddress)**  
    The name that appears in the To field of the envelope, if any.

### fromAddress

The name that appears in the From field of the envelope, if any.

#### Signature

public String fromAddress {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.")

### toAddress

The name that appears in the To field of the envelope, if any.

#### Signature

public String toAddress {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.")