ExAws.Email.Core

Amazon Simple Email Service

Amazon Simple Email Service

This is the API Reference for Amazon Simple Email Service (Amazon SES). This documentation is intended to be used in conjunction with the Amazon SES Developer Guide.

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

Source

Summary

delete_identity!(client, input)

Same as delete_identity/2 but raise on error

delete_identity(client, input)

DeleteIdentity

delete_identity_policy!(client, input)

Same as delete_identity_policy/2 but raise on error

delete_identity_policy(client, input)

DeleteIdentityPolicy

delete_verified_email_address!(client, input)

Same as delete_verified_email_address/2 but raise on error

delete_verified_email_address(client, input)

DeleteVerifiedEmailAddress

get_identity_dkim_attributes!(client, input)

Same as get_identity_dkim_attributes/2 but raise on error

get_identity_dkim_attributes(client, input)

GetIdentityDkimAttributes

get_identity_notification_attributes!(client, input)

Same as get_identity_notification_attributes/2 but raise on error

get_identity_notification_attributes(client, input)

GetIdentityNotificationAttributes

get_identity_policies!(client, input)

Same as get_identity_policies/2 but raise on error

get_identity_policies(client, input)

GetIdentityPolicies

get_identity_verification_attributes!(client, input)

Same as get_identity_verification_attributes/2 but raise on error

get_identity_verification_attributes(client, input)

GetIdentityVerificationAttributes

get_send_quota!(client)

Same as get_send_quota/2 but raise on error

get_send_quota(client)

GetSendQuota

get_send_statistics!(client)

Same as get_send_statistics/2 but raise on error

get_send_statistics(client)

GetSendStatistics

list_identities!(client, input)

Same as list_identities/2 but raise on error

list_identities(client, input)

ListIdentities

list_identity_policies!(client, input)

Same as list_identity_policies/2 but raise on error

list_identity_policies(client, input)

ListIdentityPolicies

list_verified_email_addresses!(client)

Same as list_verified_email_addresses/2 but raise on error

list_verified_email_addresses(client)

ListVerifiedEmailAddresses

put_identity_policy!(client, input)

Same as put_identity_policy/2 but raise on error

put_identity_policy(client, input)

PutIdentityPolicy

send_email!(client, input)

Same as send_email/2 but raise on error

send_email(client, input)

SendEmail

send_raw_email!(client, input)

Same as send_raw_email/2 but raise on error

send_raw_email(client, input)

SendRawEmail

set_identity_dkim_enabled!(client, input)

Same as set_identity_dkim_enabled/2 but raise on error

set_identity_dkim_enabled(client, input)

SetIdentityDkimEnabled

set_identity_feedback_forwarding_enabled!(client, input)

Same as set_identity_feedback_forwarding_enabled/2 but raise on error

set_identity_feedback_forwarding_enabled(client, input)

SetIdentityFeedbackForwardingEnabled

set_identity_notification_topic!(client, input)

Same as set_identity_notification_topic/2 but raise on error

set_identity_notification_topic(client, input)

SetIdentityNotificationTopic

verify_domain_dkim!(client, input)

Same as verify_domain_dkim/2 but raise on error

verify_domain_dkim(client, input)

VerifyDomainDkim

verify_domain_identity!(client, input)

Same as verify_domain_identity/2 but raise on error

verify_domain_identity(client, input)

VerifyDomainIdentity

verify_email_address!(client, input)

Same as verify_email_address/2 but raise on error

verify_email_address(client, input)

VerifyEmailAddress

verify_email_identity!(client, input)

Same as verify_email_identity/2 but raise on error

verify_email_identity(client, input)

VerifyEmailIdentity

Types

max24_hour_send :: float

send_raw_email_response :: [{:message_id, message_id}]

list_identities_response :: [identities: identity_list, next_token: next_token]

identity_verification_attributes :: [verification_status: verification_status, verification_token: verification_token]

get_send_quota_response :: [max24_hour_send: max24_hour_send, max_send_rate: max_send_rate, sent_last24_hours: sent_last24_hours]

charset :: binary

send_raw_email_request :: [destinations: address_list, from_arn: amazon_resource_name, raw_message: raw_message, return_path_arn: amazon_resource_name, source: address, source_arn: amazon_resource_name]

identity_notification_attributes :: [bounce_topic: notification_topic, complaint_topic: notification_topic, delivery_topic: notification_topic, forwarding_enabled: enabled]

send_email_response :: [{:message_id, message_id}]

address :: binary

verification_token :: binary

message :: [body: body, subject: content]

put_identity_policy_request :: [identity: identity, policy: policy, policy_name: policy_name]

timestamp :: integer

counter :: integer

max_send_rate :: float

identity :: binary

notification_topic :: binary

message_id :: binary

policy :: binary

send_email_request :: [destination: destination, message: message, reply_to_addresses: address_list, return_path: address, return_path_arn: amazon_resource_name, source: address, source_arn: amazon_resource_name]

verify_email_address_request :: [{:email_address, address}]

raw_message_data :: binary

content :: [charset: charset, data: message_data]

message_data :: binary

verify_email_identity_request :: [{:email_address, address}]

delete_identity_policy_request :: [identity: identity, policy_name: policy_name]

max_items :: integer

notification_type :: binary

destination :: [bcc_addresses: address_list, cc_addresses: address_list, to_addresses: address_list]

policy_name :: binary

enabled :: boolean

body :: [html: content, text: content]

send_data_point :: [bounces: counter, complaints: counter, delivery_attempts: counter, rejects: counter, timestamp: timestamp]

list_identities_request :: [identity_type: identity_type, max_items: max_items, next_token: next_token]

set_identity_dkim_enabled_request :: [dkim_enabled: enabled, identity: identity]

delete_identity_request :: [{:identity, identity}]

identity_type :: binary

next_token :: binary

list_verified_email_addresses_response :: [{:verified_email_addresses, address_list}]

identity_dkim_attributes :: [dkim_enabled: enabled, dkim_tokens: verification_token_list, dkim_verification_status: verification_status]

domain :: binary

Functions

delete_identity(client, input)

Specs:

DeleteIdentity

Deletes the specified identity (email address or domain) from the list of verified identities.

This action is throttled at one request per second.

Source
delete_identity!(client, input)

Specs:

  • delete_identity!(client :: ExAws.Email.t, input :: delete_identity_request) :: ExAws.Request.Query.success_t | no_return

Same as delete_identity/2 but raise on error.

Source
delete_identity_policy(client, input)

Specs:

DeleteIdentityPolicy

Deletes the specified sending authorization policy for the given identity (email address or domain). This API returns successfully even if a policy with the specified name does not exist.

Note:This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

Source
delete_identity_policy!(client, input)

Specs:

Same as delete_identity_policy/2 but raise on error.

Source
delete_verified_email_address(client, input)

Specs:

DeleteVerifiedEmailAddress

Deletes the specified email address from the list of verified addresses.

The DeleteVerifiedEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The DeleteIdentity action is now preferred. This action is throttled at one request per second.

Source
delete_verified_email_address!(client, input)

Specs:

Same as delete_verified_email_address/2 but raise on error.

Source
get_identity_dkim_attributes(client, input)

Specs:

GetIdentityDkimAttributes

Returns the current status of Easy DKIM signing for an entity. For domain name identities, this action also returns the DKIM tokens that are required for Easy DKIM signing, and whether Amazon SES has successfully verified that these tokens have been published.

This action takes a list of identities as input and returns the following information for each:

  • Whether Easy DKIM signing is enabled or disabled.

  • A set of DKIM tokens that represent the identity. If the identity is an email address, the tokens represent the domain of that address.

  • Whether Amazon SES has successfully verified the DKIM tokens published in the domain’s DNS. This information is only returned for domain name identities, not for email addresses.

This action is throttled at one request per second and can only get DKIM attributes for up to 100 identities at a time.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Source
get_identity_dkim_attributes!(client, input)

Specs:

Same as get_identity_dkim_attributes/2 but raise on error.

Source
get_identity_notification_attributes(client, input)

Specs:

GetIdentityNotificationAttributes

Given a list of verified identities (email addresses and/or domains), returns a structure describing identity notification attributes.

This action is throttled at one request per second and can only get notification attributes for up to 100 identities at a time.

For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

Source
get_identity_notification_attributes!(client, input)

Specs:

Same as get_identity_notification_attributes/2 but raise on error.

Source
get_identity_policies(client, input)

Specs:

GetIdentityPolicies

Returns the requested sending authorization policies for the given identity (email address or domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.

Note:This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

Source
get_identity_policies!(client, input)

Specs:

Same as get_identity_policies/2 but raise on error.

Source
get_identity_verification_attributes(client, input)

Specs:

GetIdentityVerificationAttributes

Given a list of identities (email addresses and/or domains), returns the verification status and (for domain identities) the verification token for each identity.

This action is throttled at one request per second and can only get verification attributes for up to 100 identities at a time.

Source
get_identity_verification_attributes!(client, input)

Specs:

Same as get_identity_verification_attributes/2 but raise on error.

Source
get_send_quota(client)

Specs:

  • get_send_quota(client :: ExAws.Email.t) :: ExAws.Request.Query.response_t

GetSendQuota

Returns the user’s current sending limits.

This action is throttled at one request per second.

Source
get_send_quota!(client)

Specs:

  • get_send_quota!(client :: ExAws.Email.t) :: ExAws.Request.Query.success_t | no_return

Same as get_send_quota/2 but raise on error.

Source
get_send_statistics(client)

Specs:

  • get_send_statistics(client :: ExAws.Email.t) :: ExAws.Request.Query.response_t

GetSendStatistics

Returns the user’s sending statistics. The result is a list of data points, representing the last two weeks of sending activity.

Each data point in the list contains statistics for a 15-minute interval.

This action is throttled at one request per second.

Source
get_send_statistics!(client)

Specs:

  • get_send_statistics!(client :: ExAws.Email.t) :: ExAws.Request.Query.success_t | no_return

Same as get_send_statistics/2 but raise on error.

Source
list_identities(client, input)

Specs:

ListIdentities

Returns a list containing all of the identities (email addresses and domains) for a specific AWS Account, regardless of verification status.

This action is throttled at one request per second.

Source
list_identities!(client, input)

Specs:

  • list_identities!(client :: ExAws.Email.t, input :: list_identities_request) :: ExAws.Request.Query.success_t | no_return

Same as list_identities/2 but raise on error.

Source
list_identity_policies(client, input)

Specs:

ListIdentityPolicies

Returns a list of sending authorization policies that are attached to the given identity (email address or domain). This API returns only a list. If you want the actual policy content, you can use GetIdentityPolicies.

Note:This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

Source
list_identity_policies!(client, input)

Specs:

Same as list_identity_policies/2 but raise on error.

Source
list_verified_email_addresses(client)

Specs:

  • list_verified_email_addresses(client :: ExAws.Email.t) :: ExAws.Request.Query.response_t

ListVerifiedEmailAddresses

Returns a list containing all of the email addresses that have been verified.

The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 release of Domain Verification. The ListIdentities action is now preferred. This action is throttled at one request per second.

Source
list_verified_email_addresses!(client)

Specs:

  • list_verified_email_addresses!(client :: ExAws.Email.t) :: ExAws.Request.Query.success_t | no_return

Same as list_verified_email_addresses/2 but raise on error.

Source
put_identity_policy(client, input)

Specs:

PutIdentityPolicy

Adds or updates a sending authorization policy for the specified identity (email address or domain).

Note:This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

This action is throttled at one request per second.

Source
put_identity_policy!(client, input)

Specs:

Same as put_identity_policy/2 but raise on error.

Source
send_email(client, input)

Specs:

  • send_email(client :: ExAws.Email.t, input :: send_email_request) :: ExAws.Request.Query.response_t

SendEmail

Composes an email message based on input data, and then immediately queues the message for sending.

There are several important points to know about SendEmail:

  • You can only send email from verified email addresses and domains; otherwise, you will get an “Email address not verified” error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.

  • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.

  • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. 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 Amazon SES repeatedly to send the message to each group.

  • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.
Source
send_email!(client, input)

Specs:

  • send_email!(client :: ExAws.Email.t, input :: send_email_request) :: ExAws.Request.Query.success_t | no_return

Same as send_email/2 but raise on error.

Source
send_raw_email(client, input)

Specs:

SendRawEmail

Sends an email message, with header and content specified by the client. The SendRawEmail action is useful for sending multipart MIME emails. The raw text of the message must comply with Internet email standards; otherwise, the message cannot be sent.

There are several important points to know about SendRawEmail:

  • You can only send email from verified email addresses and domains; otherwise, you will get an “Email address not verified” error. If your account is still in the Amazon SES sandbox, you must also verify every recipient email address except for the recipients provided by the Amazon SES mailbox simulator. For more information, go to the Amazon SES Developer Guide.

  • The total size of the message cannot exceed 10 MB. This includes any attachments that are part of the message.

  • Amazon SES has a limit on the total number of recipients per message. The combined number of To:, CC: and BCC: email addresses cannot exceed 50. 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 Amazon SES repeatedly to send the message to each group.

  • The To:, CC:, and BCC: headers in the raw message can contain a group list. Note that each recipient in a group list counts towards the 50-recipient limit.

  • For every message that you send, the total number of recipients (To:, CC: and BCC:) is counted against your sending quota - the maximum number of emails you can send in a 24-hour period. For information about your sending quota, go to the Amazon SES Developer Guide.

  • If you are using sending authorization to send on behalf of another user, SendRawEmail 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 SourceArn, FromArn, and/or ReturnPathArn to the API, or you can include the following X-headers in the header of your raw email:

  • X-SES-SOURCE-ARN

  • X-SES-FROM-ARN

  • X-SES-RETURN-PATH-ARN

Do not include these X-headers in the DKIM signature, because they are removed by Amazon SES before sending the email. For the most common sending authorization use case, we recommend that you specify the SourceIdentityArn and do not specify either the FromIdentityArn or ReturnPathIdentityArn. (The same note applies to the corresponding X-headers.) If you only specify the SourceIdentityArn, Amazon SES will simply set the “From” address and the “Return Path” address to the identity specified in SourceIdentityArn. For more information about sending authorization, see the Amazon SES Developer Guide.

Source
send_raw_email!(client, input)

Specs:

  • send_raw_email!(client :: ExAws.Email.t, input :: send_raw_email_request) :: ExAws.Request.Query.success_t | no_return

Same as send_raw_email/2 but raise on error.

Source
set_identity_dkim_enabled(client, input)

Specs:

SetIdentityDkimEnabled

Enables or disables Easy DKIM signing of email sent from an identity:

  • If Easy DKIM signing is enabled for a domain name identity (e.g., example.com), then Amazon SES will DKIM-sign all email sent by addresses under that domain name (e.g., user@example.com).

  • If Easy DKIM signing is enabled for an email address, then Amazon SES will DKIM-sign all email sent by that email address.

For email addresses (e.g., user@example.com), you can only enable Easy DKIM signing if the corresponding domain (e.g., example.com) has been set up for Easy DKIM using the AWS Console or the VerifyDomainDkim action.

This action is throttled at one request per second.

For more information about Easy DKIM signing, go to the Amazon SES Developer Guide.

Source
set_identity_dkim_enabled!(client, input)

Specs:

Same as set_identity_dkim_enabled/2 but raise on error.

Source
set_identity_feedback_forwarding_enabled(client, input)

Specs:

SetIdentityFeedbackForwardingEnabled

Given an identity (email address or domain), enables or disables whether Amazon SES forwards bounce and complaint notifications as email. Feedback forwarding can only be disabled when Amazon Simple Notification Service (Amazon SNS) topics are specified for both bounces and complaints.

Note:Feedback forwarding does not apply to delivery notifications. Delivery notifications are only available through Amazon SNS. This action is throttled at one request per second.

For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.

Source
set_identity_feedback_forwarding_enabled!(client, input)

Specs:

Same as set_identity_feedback_forwarding_enabled/2 but raise on error.

Source
set_identity_notification_topic(client, input)

Specs:

SetIdentityNotificationTopic

Given an identity (email address or domain), sets the Amazon Simple Notification Service (Amazon SNS) topic to which Amazon SES will publish bounce, complaint, and/or delivery notifications for emails sent with that identity as the Source.

Note:Unless feedback forwarding is enabled, you must specify Amazon SNS topics for bounce and complaint notifications. For more information, see SetIdentityFeedbackForwardingEnabled. This action is throttled at one request per second.

For more information about feedback notification, see the Amazon SES Developer Guide.

Source
set_identity_notification_topic!(client, input)

Specs:

Same as set_identity_notification_topic/2 but raise on error.

Source
verify_domain_dkim(client, input)

Specs:

VerifyDomainDkim

Returns a set of DKIM tokens for a domain. DKIM tokens are character strings that represent your domain’s identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain.

This action is throttled at one request per second.

To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled action.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

Source
verify_domain_dkim!(client, input)

Specs:

Same as verify_domain_dkim/2 but raise on error.

Source
verify_domain_identity(client, input)

Specs:

VerifyDomainIdentity

Verifies a domain.

This action is throttled at one request per second.

Source
verify_domain_identity!(client, input)

Specs:

Same as verify_domain_identity/2 but raise on error.

Source
verify_email_address(client, input)

Specs:

VerifyEmailAddress

Verifies an email address. This action causes a confirmation email message to be sent to the specified address.

The VerifyEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The VerifyEmailIdentity action is now preferred. This action is throttled at one request per second.

Source
verify_email_address!(client, input)

Specs:

Same as verify_email_address/2 but raise on error.

Source
verify_email_identity(client, input)

Specs:

VerifyEmailIdentity

Verifies an email address. This action causes a confirmation email message to be sent to the specified address.

This action is throttled at one request per second.

Source
verify_email_identity!(client, input)

Specs:

Same as verify_email_identity/2 but raise on error.

Source