---
schema_version: "1"
id: b701ac744f5512c94a2a4e3eb8d41b05509f5cf898b43bf91012e7a985509f7f
title: InboundEmail.Header Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_classes_email_inbound_header.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_header.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f1df8e542429b6a6785605b4f58381125576019d25da5fa2c4698f65cf058659
description: An InboundEmail object stores RFC 2822 email header information in an InboundEmail.Header object with the following properties.The name of the header parameter, such as Date or Message-ID.The value of the header.
---
# InboundEmail.Header Class

An InboundEmail object stores RFC 2822 email header information in an InboundEmail.Header object with the following properties.

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

## InboundEmail.Header Properties

The following are properties for InboundEmail.Header.

- **[name](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_header.htm#apex_Messaging_InboundEmail_Header_name)**  
    The name of the header parameter, such as Date or Message-ID.
- **[value](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_email_inbound_header.htm#apex_Messaging_InboundEmail_Header_value)**  
    The value of the header.

### name

The name of the header parameter, such as Date or Message-ID.

#### Signature

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

### value

The value of the header.

#### Signature

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

#### See Also

- [_Apex Developer Guide_: Apex Email Service](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_classes_email_inbound_what_is.htm)
- [_Apex Developer Guide_: Using the InboundEmail Object](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_classes_email_inbound_using.htm)
- [_Apex Developer Guide_: Inbound Email](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexcode.meta/apexcode/apex_classes_email_inbound.htm)
- [_Internet Engineering Task Force (IETF) Data Tracker_: RFC 2822 Section 3.6](https://datatracker.ietf.org/doc/html/rfc2822#section-3.6)