Enable ActionMailer SMTP timeouts
Before Rails 7.0 was released, neither the Mail gem or Rails were providing a default timeout for SMTP, so there was a risk of processes being stuck while sending emails. That's no longer the case, though; we're using version 2.8.x of the Mail gem, which already provides a default timeout [2]. Since the default timeout provided by the Mail gem is the same as the default timeout provided by Rails 7.0, it doesn't matter whether we enable this option. We're enabling because it's easier to just use the default 7.0 configuration. [1] Issue 41244 in https://github.com/rails/rails [2] Pull request 1427 in https://github.com/mikel/mail
This commit is contained in:
@@ -41,7 +41,7 @@ Rails.application.config.active_support.remove_deprecated_time_with_zone_name =
|
||||
Rails.application.config.active_support.executor_around_test_case = true
|
||||
|
||||
# Set both the `:open_timeout` and `:read_timeout` values for `:smtp` delivery method.
|
||||
# Rails.application.config.action_mailer.smtp_timeout = 5
|
||||
Rails.application.config.action_mailer.smtp_timeout = 5
|
||||
|
||||
# The ActiveStorage video previewer will now use scene change detection to generate
|
||||
# better preview images (rather than the previous default of using the first frame
|
||||
|
||||
Reference in New Issue
Block a user