Created
April 25, 2012 18:46
-
-
Save stegel/2492128 to your computer and use it in GitHub Desktop.
Unable to connect to 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.after_initialize do | |
ActionMailer::Base.delivery_method = :amazon_ses | |
ActionMailer::Base.custom_amazon_ses_mailer = AWS::SES::Base.new(:secret_access_key => 'abc', :access_key_id => ''123') | |
end |
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
def index | |
m = Mail.new(:to => "ritprez@gmail.com", :from => "ritprez@gmail.com", :subject => "hey", :body => "from controller") | |
m.deliver! | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment