---
title: "POST /v1/email/outbound-emails"
method: POST
path: "/v1/email/outbound-emails"
---

# POST /v1/email/outbound-emails

`POST /v1/email/outbound-emails`

Sends an email message. You can use the Amazon Pinpoint Email API to send two types of messages:

*   **Simple** – A standard email message. When you create this type of message, you specify the sender, the recipient, and the message body, and Amazon Pinpoint assembles the message for you.
    
*   **Raw** – A raw, MIME-formatted email message. When you send this type of email, you have to specify all of the message headers, as well as the message body. You can use this message type to send messages that contain attachments. The message that you specify has to be a valid MIME message.

## Request body

- object
  - `FromEmailAddress` string — The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.
  - `Destination` object, required — An object that describes the recipients for an email.
    - `ToAddresses` EmailAddress[] — An array that contains the email addresses of the "To" recipients for the email.
    - `CcAddresses` EmailAddress[] — An array that contains the email addresses of the "CC" (carbon copy) recipients for the email.
    - `BccAddresses` EmailAddress[] — An array that contains the email addresses of the "BCC" (blind carbon copy) recipients for the email.
  - `ReplyToAddresses` EmailAddress[] — The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.
  - `FeedbackForwardingEmailAddress` string — The address that Amazon Pinpoint should send bounce and complaint notifications to.
  - `Content` object, required — An object that defines the entire content of the email, including the message headers and the body content. You can create a simple email message, in which you specify the subject and the text and HTML versions of the message body. You can also create raw messages, in which you specify a complete MIME-formatted message. Raw messages can include attachments and custom headers.
    - `Simple` object — The simple email message. The message consists of a subject and a message body.
      - `Subject` object, required — The subject line of the email. The subject line can only contain 7-bit ASCII characters. However, you can specify non-ASCII characters in the subject line by using encoded-word syntax, as described in <a href="https://tools.ietf.org/html/rfc2047">RFC 2047</a>.
        - `Data` string, required — The content of the message itself.
        - `Charset` string — The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify <code>UTF-8</code>, <code>ISO-8859-1</code>, or <code>Shift_JIS</code>.
      - `Body` object, required — The body of the message. You can specify an HTML version of the message, a text-only version of the message, or both.
        - `Text` object — An object that represents the version of the message that is displayed in email clients that don't support HTML, or clients where the recipient has disabled HTML rendering.
          - `Data` string, required — The content of the message itself.
          - `Charset` string — The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify <code>UTF-8</code>, <code>ISO-8859-1</code>, or <code>Shift_JIS</code>.
        - `Html` object — An object that represents the version of the message that is displayed in email clients that support HTML. HTML messages can include formatted text, hyperlinks, images, and more.
          - `Data` string, required — The content of the message itself.
          - `Charset` string — The character set for the content. Because of the constraints of the SMTP protocol, Amazon Pinpoint uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify <code>UTF-8</code>, <code>ISO-8859-1</code>, or <code>Shift_JIS</code>.
    - `Raw` object — <p>The raw email message. The message has to meet the following criteria:</p> <ul> <li> <p>The message has to contain a header and a body, separated by one blank line.</p> </li> <li> <p>All of the required header fields must be present in the message.</p> </li> <li> <p>Each part of a multipart MIME message must be formatted properly.</p> </li> <li> <p>If you include attachments, they must be in a file format that Amazon Pinpoint supports. </p> </li> <li> <p>The entire message must be Base64 encoded.</p> </li> <li> <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.</p> </li> <li> <p>The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in <a href="https://tools.ietf.org/html/rfc5321">RFC 5321</a>.</p> </li> </ul>
      - `Data` string, required — <p>The raw email message. The message has to meet the following criteria:</p> <ul> <li> <p>The message has to contain a header and a body, separated by one blank line.</p> </li> <li> <p>All of the required header fields must be present in the message.</p> </li> <li> <p>Each part of a multipart MIME message must be formatted properly.</p> </li> <li> <p>Attachments must be in a file format that Amazon Pinpoint supports. </p> </li> <li> <p>The entire message must be Base64 encoded.</p> </li> <li> <p>If any of the MIME parts in your message contain content that is outside of the 7-bit ASCII character range, you should encode that content to ensure that recipients' email clients render the message properly.</p> </li> <li> <p>The length of any single line of text in the message can't exceed 1,000 characters. This restriction is defined in <a href="https://tools.ietf.org/html/rfc5321">RFC 5321</a>.</p> </li> </ul>
    - `Template` object — The template to use for the email message.
      - `TemplateArn` string — The Amazon Resource Name (ARN) of the template.
      - `TemplateData` string — An object that defines the values to use for message variables in the template. This object is a set of key-value pairs. Each key defines a message variable in the template. The corresponding value defines the value to use for that variable.
  - `EmailTags` MessageTag[] — A list of message tags.
    - `Name` string, required — <p>The name of the message tag. The message tag name has to meet the following criteria:</p> <ul> <li> <p>It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).</p> </li> <li> <p>It can contain no more than 256 characters.</p> </li> </ul>
    - `Value` string, required — <p>The value of the message tag. The message tag value has to meet the following criteria:</p> <ul> <li> <p>It can only contain ASCII letters (a–z, A–Z), numbers (0–9), underscores (_), or dashes (-).</p> </li> <li> <p>It can contain no more than 256 characters.</p> </li> </ul>
  - `ConfigurationSetName` string — <p>The name of a configuration set.</p> <p>In Amazon Pinpoint, <i>configuration sets</i> are groups of rules that you can apply to the emails you send. You apply a configuration set to an email by including a reference to the configuration set in the headers of the email. When you apply a configuration set to an email, all of the rules in that configuration set are applied to the email.</p>

## Response `200`

Success

- SendEmailResponse — A unique message ID that you receive when Amazon Pinpoint accepts an email for sending.
  - `MessageId` string — <p>A unique identifier for the message that is generated when Amazon Pinpoint accepts the message.</p> <note> <p>It is possible for Amazon Pinpoint to accept a message without sending it. This can happen when the message you're trying to send has an attachment doesn't pass a virus check, or when you send a templated email that contains invalid personalization content, for example.</p> </note>

## Other responses

- `480` — TooManyRequestsException
- `481` — LimitExceededException
- `482` — AccountSuspendedException
- `483` — SendingPausedException
- `484` — MessageRejected
- `485` — MailFromDomainNotVerifiedException
- `486` — NotFoundException
- `487` — BadRequestException

---

[API](https://skmtc.net/aws/apis/pinpoint-email.md) · [All operations](https://skmtc.net/aws/apis/pinpoint-email/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/pinpoint-email/revisions/73704a3e0b47/schema)
