---
schema_version: "1"
id: c5cbba8ac7cce1d6ab59815789b40acbd4e69a41253077b33a8f999db5c4d9e7
title: Inbound Email
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_classes_email_inbound.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_inbound.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c5dd7a75dcec82167009dacd3a23d3b8495a2f2adc40fc8234489c5ee7881bd2
description: Use Apex to work with email sent to Salesforce.
---
# Inbound Email

Use Apex to work with email sent to Salesforce.

You can use Apex to receive and process email and attachments. The email is received by the Apex email service, and processed by Apex classes that utilize the InboundEmail object.

![Note](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/images/icon_note.png)

#### Note

The Apex email service is only available in Developer, Enterprise, Unlimited, and Performance Edition organizations.

See [Apex Email Service](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_inbound_what_is.htm "You can use email services to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages.").