Implements Amazon SES API.
access_key
: your AWS access keysecret_key
: your AWS secret keyversion
: API versionendpoint
: SES endpoint URLhost
: SES endpoint host
Currently it only supports raw message sending.
Create a mailer instance
mailer = AmazonSES::Mailer.new(secret_key: __, access_key: __)
Deliver a message
mailer.deliver to: 'foo@example.com',
from: 'bar@example.com',
subject: 'This is a subject',
body: 'And this is the body'
Other delivery options
mail = Mail.new { ... }
m.deliver(mail)
File.open('/path/to/raw/email') do |f|
m.deliver(f.read)
end