From fd797f4fd1a90eea4a3ede6258c4b7cb122b3007 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Fri, 23 Sep 2011 11:19:02 -0700 Subject: [PATCH] Configure sendgrid --- config/environments/production.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 059310b..9872c15 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -60,3 +60,12 @@ AdoptAThing::Application.configure do # Send deprecation notices to registered listeners config.active_support.deprecation = :notify end + +ActionMailer::Base.smtp_settings = { + :address => "smtp.sendgrid.net", + :port => "25", + :authentication => :plain, + :user_name => ENV['SENDGRID_USERNAME'], + :password => ENV['SENDGRID_PASSWORD'], + :domain => ENV['SENDGRID_DOMAIN'] +}