Pārlūkot izejas kodu

Added SendGrid config for Heroku

master
Adrian Short pirms 12 gadiem
vecāks
revīzija
271a6979d2
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      config/initializers/mail.rb

+ 9
- 0
config/initializers/mail.rb Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt