6 SES (Email)
(require aws/ses) | package: aws |
Please refer to the SES documentation to understand concepts like a verified sending adddress.
parameter
(ses-endpoint) β endpoint?
(ses-endpoint v) β void? v : endpoint?
= (endpoint "email.us-east-1.amazonaws.com" #t)
parameter
(ses-region) β string?
(ses-region v) β void? v : string?
= "us-east-1"
procedure
(send-email #:from from #:to to #:subject subject #:body body [ #:cc cc #:bcc bcc #:reply-to reply-to #:return-path return-path #:html? html? #:charset charset]) β void? from : string? to : (listof string?) subject : string? body : string? cc : (listof string?) = '() bcc : (listof string?) = '() reply-to : (listof-string?) = '() return-path : string? = from html? : boolean? = #f charset : string? = "UTF-8"
If SES returns 400 Bad Request with <Code>Throttling</Code><Message>Maximum sending rate exceeded.</Message>, this repeatedly sleeps for a random 1-16 second interval then retries, until it succeeds or SES fails with some other error.
procedure
(send-raw-email mail-from rcpt-to raw-message) β xexpr? mail-from : string? rcpt-to : string? raw-message : string?
If SES returns 400 Bad Request with <Code>Throttling</Code><Message>Maximum sending rate exceeded.</Message>, this repeatedly sleeps for a random 1-16 second interval then retries, until it succeeds or SES fails with some other error.
procedure
(verify-email-address address) β void?
address : string?
procedure
(delete-verified-email-address address) β void?
address : string?
procedure
procedure
(get-send-quota) β send-quota?
struct
(struct send-quota ( sent-last-24-hours max-24-hour-send max-send-rate) #:extra-constructor-name make-send-quota) sent-last-24-hours : number? max-24-hour-send : number? max-send-rate : number?
procedure
(get-send-statistics) β (listof send-statistic?)
struct
(struct send-statistic ( time delivery-attempts rejects bounces complaints) #:extra-constructor-name make-send-statistic) time : string? delivery-attempts : number? rejects : number? bounces : number? complaints : number?
If SES adds new actions and this library isnβt updated to support them, you may be able to support them by setting the Action parameter.