Created
January 1, 2013 23:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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