Pārlūkot izejas kodu

Add SendGrid config for Heroku Cedar stack

master
Adrian Short pirms 11 gadiem
vecāks
revīzija
4c8dde1e73
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. +11
    -0
      config/environment.rb

+ 11
- 0
config/environment.rb Parādīt failu

@@ -3,3 +3,14 @@ require File.expand_path('../application', __FILE__)

# Initialize the rails application
Apollo::Application.initialize!

# SendGrid config for Heroku Cedar stack
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => ENV['SENDGRID_USERNAME'],
:password => ENV['SENDGRID_PASSWORD'],
:domain => 'heroku.com',
:enable_starttls_auto => true
}

Notiek ielāde…
Atcelt
Saglabāt