From 271a6979d2f4b43d8424c604e2462abc61b5cce3 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 8 Aug 2012 11:48:12 +0100 Subject: [PATCH] Added SendGrid config for Heroku --- config/initializers/mail.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/initializers/mail.rb diff --git a/config/initializers/mail.rb b/config/initializers/mail.rb new file mode 100644 index 0000000..01a3439 --- /dev/null +++ b/config/initializers/mail.rb @@ -0,0 +1,9 @@ +ActionMailer::Base.smtp_settings = { + :address => 'smtp.sendgrid.net', + :port => '587', + :authentication => :plain, + :user_name => ENV['SENDGRID_USERNAME'], + :password => ENV['SENDGRID_PASSWORD'], + :domain => 'heroku.com' +} +ActionMailer::Base.delivery_method = :smtp