Configure sendgrid

This commit is contained in:
Erik Michaels-Ober 2011-09-23 11:19:02 -07:00
parent f35322c264
commit fd797f4fd1
1 changed files with 9 additions and 0 deletions

View File

@ -60,3 +60,12 @@ AdoptAThing::Application.configure do
# Send deprecation notices to registered listeners # Send deprecation notices to registered listeners
config.active_support.deprecation = :notify config.active_support.deprecation = :notify
end 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']
}