Browse Source

Added SendGrid config for Heroku

master
Adrian Short 12 years ago
parent
commit
271a6979d2
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      config/initializers/mail.rb

+ 9
- 0
config/initializers/mail.rb View File

@@ -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

Loading…
Cancel
Save