Skip to content

Commit

Permalink
Provide 10 second defaults on open or read calls for SMTP. (#3981)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinreiss committed Mar 20, 2024
1 parent 58046ea commit 3f9c95e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@

config.action_mailer.smtp_settings = {
address: "#{ENV['SMTP_HOST'] || 'lib-ponyexpr.princeton.edu' }",
port: (ENV['SMTP_PORT'] || 25).to_i
port: (ENV['SMTP_PORT'] || 25).to_i,
open_timeout: 10,
read_timeout: 10
}
config.action_mailer.default_options = {
from: 'no-reply@princeton.edu'
Expand Down

0 comments on commit 3f9c95e

Please sign in to comment.