Jump to Content

Amazon Simple Email Service

This document contains reference information for the Amazon Simple Email Service (Amazon SES) API, version 2010-12-01. This document is best used in conjunction with the Amazon SES Developer Guide.

For a list of Amazon SES endpoints to use in service requests, see Regions and Amazon SES in the Amazon SES Developer Guide.

Hierarchy

Constructors

Properties

Methods

cloneReceiptRuleSet createConfigurationSet createConfigurationSetEventDestination createConfigurationSetTrackingOptions createCustomVerificationEmailTemplate createReceiptFilter createReceiptRule createReceiptRuleSet createTemplate deleteConfigurationSet deleteConfigurationSetEventDestination deleteConfigurationSetTrackingOptions deleteCustomVerificationEmailTemplate deleteIdentity deleteIdentityPolicy deleteReceiptFilter deleteReceiptRule deleteReceiptRuleSet deleteTemplate deleteVerifiedEmailAddress describeActiveReceiptRuleSet describeConfigurationSet describeReceiptRule describeReceiptRuleSet destroy getAccountSendingEnabled getCustomVerificationEmailTemplate getIdentityDkimAttributes getIdentityMailFromDomainAttributes getIdentityNotificationAttributes getIdentityPolicies getIdentityVerificationAttributes getSendQuota getSendStatistics getTemplate listConfigurationSets listCustomVerificationEmailTemplates listIdentities listIdentityPolicies listReceiptFilters listReceiptRuleSets listTemplates listVerifiedEmailAddresses putConfigurationSetDeliveryOptions putIdentityPolicy reorderReceiptRuleSet send sendBounce sendBulkTemplatedEmail sendCustomVerificationEmail sendEmail sendRawEmail sendTemplatedEmail setActiveReceiptRuleSet setIdentityDkimEnabled setIdentityFeedbackForwardingEnabled setIdentityHeadersInNotificationsEnabled setIdentityMailFromDomain setIdentityNotificationTopic setReceiptRulePosition testRenderTemplate updateAccountSendingEnabled updateConfigurationSetEventDestination updateConfigurationSetReputationMetricsEnabled updateConfigurationSetSendingEnabled updateConfigurationSetTrackingOptions updateCustomVerificationEmailTemplate updateReceiptRule updateTemplate verifyDomainDkim verifyDomainIdentity verifyEmailAddress verifyEmailIdentity

Constructors

Properties

The resolved configuration of SESClient class. This is resolved and normalized from the constructor configuration interface.

middlewareStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>

Methods

  • Destroy underlying resources, like sockets. It's usually not necessary to do this. However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. Otherwise, sockets might stay open for quite a long time before the server terminates them.

    Returns void

  • Type Parameters

    Parameters

    Returns Promise<OutputType>

  • Type Parameters

    Parameters

    • command: Command<ServiceInputTypes, InputType, ServiceOutputTypes, OutputType, SmithyResolvedConfiguration<HttpHandlerOptions>>
    • cb: ((err: any, data?: OutputType) => void)
        • (err: any, data?: OutputType): void
        • Parameters

          • err: any
          • Optional data: OutputType

          Returns void

    Returns void

  • Type Parameters

    Parameters

    • command: Command<ServiceInputTypes, InputType, ServiceOutputTypes, OutputType, SmithyResolvedConfiguration<HttpHandlerOptions>>
    • options: HttpHandlerOptions
    • cb: ((err: any, data?: OutputType) => void)
        • (err: any, data?: OutputType): void
        • Parameters

          • err: any
          • Optional data: OutputType

          Returns void

    Returns void

  • Composes an email message and immediately queues it for sending. In order to send email using the SendEmail operation, your message must meet the following requirements:

        <ul>
    <li>
    <p>The message must be sent from a verified email address or domain. If you
    attempt to send email using a non-verified address or domain, the operation will
    result in an "Email address not verified" error. </p>
    </li>
    <li>
    <p>If your account is still in the Amazon SES sandbox, you may only send to verified
    addresses or domains, or to email addresses associated with the Amazon SES Mailbox
    Simulator. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">Verifying
    Email Addresses and Domains</a> in the <i>Amazon SES Developer
    Guide.</i>
    </p>
    </li>
    <li>
    <p>The maximum message size is 10 MB.</p>
    </li>
    <li>
    <p>The message must include at least one recipient email address. The recipient
    address can be a To: address, a CC: address, or a BCC: address. If a recipient
    email address is invalid (that is, it is not in the format
    <i>UserName@[SubDomain.]Domain.TopLevelDomain</i>), the entire
    message will be rejected, even if the message contains other recipients that are
    valid.</p>
    </li>
    <li>
    <p>The message may not include more than 50 recipients, across the To:, CC: and
    BCC: fields. If you need to send an email message to a larger audience, you can
    divide your recipient list into groups of 50 or fewer, and then call the
    <code>SendEmail</code> operation several times to send the message to each
    group.</p>
    </li>
    </ul>
    <important>
    <p>For every message that you send, the total number of recipients (including each
    recipient in the To:, CC: and BCC: fields) is counted against the maximum number of
    emails you can send in a 24-hour period (your <i>sending quota</i>).
    For more information about sending quotas in Amazon SES, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html">Managing Your Amazon SES
    Sending Limits</a> in the <i>Amazon SES Developer Guide.</i>
    </p>
    </important>

    Parameters

    Returns Promise<SendEmailCommandOutput>

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Composes an email message and immediately queues it for sending.

        <p>This operation is more flexible than the <code>SendEmail</code> API operation. When
    you use the <code>SendRawEmail</code> operation, you can specify the headers of the
    message as well as its content. This flexibility is useful, for example, when you want
    to send a multipart MIME email (such a message that contains both a text and an HTML
    version). You can also use this operation to send messages that include
    attachments.</p>
    <p>The <code>SendRawEmail</code> operation has the following requirements:</p>
    <ul>
    <li>
    <p>You can only send email from <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html">verified email addresses or domains</a>. If you try
    to send email from an address that isn't verified, the operation results in an
    "Email address not verified" error.</p>
    </li>
    <li>
    <p>If your account is still in the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html">Amazon SES sandbox</a>, you can only send email to other
    verified addresses in your account, or to addresses that are associated with the
    <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mailbox-simulator.html">Amazon SES mailbox simulator</a>.</p>
    </li>
    <li>
    <p>The maximum message size, including attachments, is 10 MB.</p>
    </li>
    <li>
    <p>Each message has to include at least one recipient address. A recipient
    address includes any address on the To:, CC:, or BCC: lines.</p>
    </li>
    <li>
    <p>If you send a single message to more than one recipient address, and one of
    the recipient addresses isn't in a valid format (that is, it's not in the format
    <i>UserName@[SubDomain.]Domain.TopLevelDomain</i>), Amazon SES
    rejects the entire message, even if the other addresses are valid.</p>
    </li>
    <li>
    <p>Each message can include up to 50 recipient addresses across the To:, CC:, or
    BCC: lines. If you need to send a single message to more than 50 recipients, you
    have to split the list of recipient addresses into groups of less than 50
    recipients, and send separate messages to each group.</p>
    </li>
    <li>
    <p>Amazon SES allows you to specify 8-bit Content-Transfer-Encoding for MIME message
    parts. However, if Amazon SES has to modify the contents of your message (for
    example, if you use open and click tracking), 8-bit content isn't preserved. For
    this reason, we highly recommend that you encode all content that isn't 7-bit
    ASCII. For more information, see <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html#send-email-mime-encoding">MIME Encoding</a> in the <i>Amazon SES Developer
    Guide</i>.</p>
    </li>
    </ul>



    <p>Additionally, keep the following considerations in mind when using the
    <code>SendRawEmail</code> operation:</p>

    <ul>
    <li>
    <p>Although you can customize the message headers when using the
    <code>SendRawEmail</code> operation, Amazon SES will automatically apply its own
    <code>Message-ID</code> and <code>Date</code> headers; if you passed these
    headers when creating the message, they will be overwritten by the values that
    Amazon SES provides.</p>
    </li>
    <li>
    <p>If you are using sending authorization to send on behalf of another user,
    <code>SendRawEmail</code> enables you to specify the cross-account identity
    for the email's Source, From, and Return-Path parameters in one of two ways: you
    can pass optional parameters <code>SourceArn</code>, <code>FromArn</code>,
    and/or <code>ReturnPathArn</code> to the API, or you can include the following
    X-headers in the header of your raw email:</p>
    <ul>
    <li>
    <p>
    <code>X-SES-SOURCE-ARN</code>
    </p>
    </li>
    <li>
    <p>
    <code>X-SES-FROM-ARN</code>
    </p>
    </li>
    <li>
    <p>
    <code>X-SES-RETURN-PATH-ARN</code>
    </p>
    </li>
    </ul>
    <important>
    <p>Don't include these X-headers in the DKIM signature. Amazon SES removes these
    before it sends the email.</p>
    </important>
    <p>If you only specify the <code>SourceIdentityArn</code> parameter, Amazon SES sets
    the From and Return-Path addresses to the same identity that you
    specified.</p>
    <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Using Sending
    Authorization with Amazon SES</a> in the <i>Amazon SES Developer
    Guide.</i>
    </p>
    </li>
    <li>
    <p>For every message that you send, the total number of recipients (including
    each recipient in the To:, CC: and BCC: fields) is counted against the maximum
    number of emails you can send in a 24-hour period (your <i>sending
    quota</i>). For more information about sending quotas in Amazon SES, see
    <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/manage-sending-limits.html">Managing Your
    Amazon SES Sending Limits</a> in the <i>Amazon SES Developer
    Guide.</i>
    </p>
    </li>
    </ul>

    Parameters

    Returns Promise<SendRawEmailCommandOutput>

  • Parameters

    Returns void

  • Parameters

    Returns void