class

Alumna::SES

Inherits Alumna::Mailer < Reference < Object

Amazon SES API v2 SendEmail. One method: send. This is not a Redis-style holder.

Success returns nil. HTTP errors, network errors, and TLS errors return MailError. Empty region, empty keys, or a bad endpoint raise ArgumentError.

Do not log the secret, the session token, or the Authorization header. MailError text has those values removed.

Constants

CONTENT_TYPE = "application/json"
PATH = "/v2/email/outbound-emails"
REGION = /\A[a-z0-9-]+\z/
SERVICE = "ses"

Constructors

from_env(*, endpoint : String | Nil = nil, transport : Transport = HTTPTransport.new) : self
Source
new(*, region : String, access_key_id : String, secret_access_key : String, session_token : String | Nil = nil, endpoint : String | Nil = nil, transport : Transport = HTTPTransport.new)
Source

Instance methods

send(mail : Mail) : Nil | MailError
Source

Nested types