Skip to content

Commit fefbaf3

Browse files
authored
Merge pull request #5286 from rubyforgood/switch-to-ses
Switch to ENV for SMTP settings as we switch to SES
2 parents a1eb791 + f73ef5f commit fefbaf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config/environments/production.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
config.action_mailer.default_url_options = { host: "humanessentials.app" }
1717
config.action_mailer.delivery_method = :smtp
1818
config.action_mailer.smtp_settings = {
19-
address: 'smtp.sendgrid.net',
19+
address: ENV['SMTP_SERVER'],
2020
port: '587',
2121
authentication: :plain,
22-
user_name: ENV['SENDGRID_USERNAME'],
23-
password: ENV['SENDGRID_PASSWORD'],
22+
user_name: ENV['SMTP_USERNAME'],
23+
password: ENV['SMTP_PASSWORD'],
2424
domain: 'humanessentials.app',
2525
enable_starttls_auto: true
2626
}

0 commit comments

Comments
 (0)