瀏覽代碼

Added SendGrid config for Heroku

master
Adrian Short 12 年之前
父節點
當前提交
271a6979d2
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      config/initializers/mail.rb

+ 9
- 0
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

Loading…
取消
儲存