Heroku Mailer (SendGrid) configuration steps
-
Go to your heroku application.
-
Add SendGrid addons
-
Config STMP settings to your config/environment.rb
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
}
- Restart Heroku
heroku restart