SES is a very simple and easy to use Gem for sending Emails using the Amazon SES API. While there are already quite a few Gems out there for using this API most of them had a dependency on the rather bloated "Mail" library.
This particular Gem aims to be as small as possible, comes with only HTTParty as a dependency and doesn't do anything else besides sending Emails. This means that if you're looking for a way to verify Emails or to get your send quota you should probably look somewhere else.
$ gem install ses
Load the gem:
Configure your access and secret keys:
SES::Client::OPTIONS[:access_key] = 'example' SES::Client::OPTIONS[:secret_key] = 'example'
Create a new instance of
email = SES::Email.new( :from => 'firstname.lastname@example.org', :to => 'email@example.com', :subject => 'Testing', :body => 'This is an example Email' )
And send it:
The tests are written using Bacon and can be executed as following:
$ bacon spec/ses/*.rb
The code in this repository is licensed under the MIT license. A copy of this license can be found in the file "LICENSE".