amazonka-ses-0.2.3: Amazon Simple Email Service SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.SES.SendEmail

Contents

Description

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

You can only send email from verified email addresses and domains. If you have not requested production access to Amazon SES, 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 SESDeveloper Guide. The total size of the message cannot exceed 10 MB.

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.

http://docs.aws.amazon.com/ses/latest/APIReference/API_SendEmail.html

Synopsis

Request

data SendEmail Source

Instances

Eq SendEmail 
Read SendEmail 
Show SendEmail 
AWSRequest SendEmail 
ToQuery SendEmail 
ToPath SendEmail 
ToHeaders SendEmail 
type Sv SendEmail = SES 
type Rs SendEmail = SendEmailResponse 

Request constructor

Request lenses

seDestination :: Lens' SendEmail Destination Source

The destination for this email, composed of To:, CC:, and BCC: fields.

seMessage :: Lens' SendEmail Message Source

The message to be sent.

seReplyToAddresses :: Lens' SendEmail [Text] Source

The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address will receive the reply.

seReturnPath :: Lens' SendEmail (Maybe Text) Source

The email address to which bounces and complaints are to be forwarded when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message will be returned from the recipient's ISP; this message will then be forwarded to the email address specified by the ReturnPath parameter.

seSource :: Lens' SendEmail Text Source

The identity's email address.

By default, the string must be 7-bit ASCII. If the text must contain any other characters, then you must use MIME encoded-word syntax (RFC 2047) instead of a literal string. MIME encoded-word syntax uses the following form: '=?charset?encoding?encoded-text?='. For more information, see RFC 2047.

Response

Response constructor

sendEmailResponse Source

SendEmailResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

serMessageId :: Lens' SendEmailResponse Text Source

The unique message identifier returned from the SendEmail action.