Skip to content

Commit

Permalink
Omit nil SMTP settings
Browse files Browse the repository at this point in the history
Setting smtp_settings[:domain] to nil (as opposed to leaving it absent)
caused SMTP connections to fail with EOFError.
  • Loading branch information
AndrewKvalheim committed Nov 2, 2020
1 parent 4f36cd2 commit 37713ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
password: ENV['OSEM_SMTP_PASSWORD'],
authentication: ENV['OSEM_SMTP_AUTHENTICATION'].try(:to_sym),
enable_starttls_auto: true,
}
}.compact

# Set the secret_key_base from the env, if not set by any other means
config.secret_key_base ||= ENV['SECRET_KEY_BASE']
Expand Down

0 comments on commit 37713ca

Please sign in to comment.