Skip to content

Instantly share code, notes, and snippets.

@stegel
Created April 25, 2012 18:46
Show Gist options
  • Save stegel/2492128 to your computer and use it in GitHub Desktop.
Save stegel/2492128 to your computer and use it in GitHub Desktop.
Unable to connect to SES
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
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