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.
- Rails support is not very well tested.
Put in config/environments/env.rb
:
mailer = AmazonSes::Mailer.new(:access_key => "abc", :secret_key => "123")
config.action_mailer.delivery_method = mailer
Create a mailer instance
mailer = AmazonSes::Mailer.new(:access_key => "abc", :secret_key => "123")
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 { ... }
mailer.deliver(mail)
File.open('/path/to/raw/email') do |f|
mailer.deliver(f.read)
end
- Adam Bronte
- Eli Fox-Epstein
- Hans Hasselberg
- Gabriel Engel
Pull requests are very welcome. Please write specs for new functionality and be sure the old ones pass.
bundle exec rake spec