File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments