浏览代码

Add SendGrid config for Heroku Cedar stack

master
Adrian Short 11 年前
父节点
当前提交
4c8dde1e73
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      config/environment.rb

+ 11
- 0
config/environment.rb 查看文件

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

正在加载...
取消
保存