Skip to content

Commit 95847b1

Browse files
committed
hardcodes certain mailer defaults
1 parent fec42f7 commit 95847b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/environments/production.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
puts "SMTP_USERNAME: #{ENV['SMTP_USERNAME'].inspect}"
1212
config.action_mailer.smtp_settings = {
13-
:user_name => ENV['SMTP_USERNAME'] || ENV['SENDGRID_USERNAME'],
14-
:password => ENV['SMTP_PASSWORD'] || ENV['SENDGRID_PASSWORD'],
15-
:domain => ENV['SMTP_DOMAIN'] || 'mail.tosdr.org',
16-
:address => ENV['SMTP_HOSTNAME'] || 'smtp.sendgrid.net',
17-
:port => ENV['SMTP_PORT'] || 587,
13+
:user_name => ENV['SMTP_USERNAME'],
14+
:password => ENV['SMTP_PASSWORD'],
15+
:domain => 'mail.tosdr.org', # OK for MailerSend
16+
:address => 'smtp.mailersend.net', # Not SendGrid!
17+
:port => 587,
1818
:authentication => :plain,
19-
:enable_starttls_auto => ENV['SMTP_ENABLE_STARTTLS_AUTO'] != 'false'
19+
:enable_starttls_auto => true
2020
}
2121

2222
# Settings specified here will take precedence over those in config/application.rb.

0 commit comments

Comments
 (0)