Skip to content

Commit

Permalink
Change unintended SMTP read timeout from 5 seconds to 20 seconds (mas…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and arachnist committed Apr 4, 2023
1 parent 1edae86 commit 0de360f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/environments/production.rb
Expand Up @@ -128,6 +128,7 @@
enable_starttls_auto: enable_starttls_auto,
tls: ENV['SMTP_TLS'].presence && ENV['SMTP_TLS'] == 'true',
ssl: ENV['SMTP_SSL'].presence && ENV['SMTP_SSL'] == 'true',
read_timeout: 20,
}

config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym
Expand Down

0 comments on commit 0de360f

Please sign in to comment.