環境 Rails4.1.8 heroku SendGrid 目的 productionモード(heroku)でメールが送れるようにする 1. herokuにアドオン SendGridをインストール # heroku login # heroku addons:add sendgrid:starter 2. herokuから設定を取得 # heroku config:get SENDGRID_USERNAME # => xxxx@heroku.com # heroku config:get SENDGRID_PASSWORD # => password 3. herokuにherokuから設定を取得 # config/environment.rb ActionMailer::Base.smtp_settings = { :address => 'smtp.sendgrid.net', :po