浏览代码

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

正在加载...
取消
保存