Skip to content

Instantly share code, notes, and snippets.

@amster
Created January 1, 2013 23:22
Show Gist options
  • Save amster/4430943 to your computer and use it in GitHub Desktop.
Save amster/4430943 to your computer and use it in GitHub Desktop.
ActionMailer settings in production.rb (that also work with Devise) to connect to Amazon SES
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_url_options = { :host => 'YOURDOMAIN.com'}
config.action_mailer.smtp_settings = {
:address => 'email-smtp.us-east-1.amazonaws.com', # See the SES SMTP Settings dashboard
:port => '25',
:domain => 'YOURDOMAIN.com', # Your domain
:user_name => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456', # New SMTP credentials, NOT AWS CREDENTIALS!
:password => 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456', # New SMTP credentials, NOT AWS CREDENTIALS!
:authentication => :login
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment