Skip to content

Commit

Permalink
Error if sendgrid env not set
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrif committed Apr 6, 2022
1 parent 4000103 commit cb48717
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
config.action_mailer.default_options = {from: ENV['MAIL_FROM']}

config.action_mailer.smtp_settings = {
:address => ENV['SENDGRID_ADDRESS'],
:address => ENV.fetch('SENDGRID_ADDRESS'),
:port => '587',
:authentication => :plain,
:user_name => "apikey",
:password => ENV['SENDGRID_API_KEY'],
:domain => ENV['SENDGRID_DOMAIN'],
:password => ENV.fetch('SENDGRID_PASSWORD'),
:domain => ENV.fetch('SENDGRID_DOMAIN'),
:enable_starttls_auto => true
}

Expand Down

0 comments on commit cb48717

Please sign in to comment.