Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

abronte/Amazon-SES-Mailer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Amazon SES Mailer

Implements Amazon SES API.

Options

  • access_key: your AWS access key
  • secret_key: your AWS secret key
  • version: API version
  • endpoint: SES endpoint URL
  • host: SES endpoint host

Limitations

  • Currently it only supports raw message sending.
  • Rails support is not very well tested.

Rails Example

Put in config/environments/env.rb:

mailer = AmazonSes::Mailer.new(:access_key => "abc", :secret_key => "123")
config.action_mailer.delivery_method = mailer

Examples

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

Contributors

  • Adam Bronte
  • Eli Fox-Epstein
  • Hans Hasselberg
  • Gabriel Engel

Contributing

Pull requests are very welcome. Please write specs for new functionality and be sure the old ones pass.

bundle exec rake spec

About

Gem is defunct. Check out amazon's official gem

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages