add explanation about rescue_from in application_mailer
This commit is contained in:
parent
7f76ab6671
commit
75923f7cb2
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ class ApplicationMailer < ActionMailer::Base
|
|||
default from: "demarches-simplifiees.fr <#{CONTACT_EMAIL}>"
|
||||
layout 'mailer'
|
||||
|
||||
# Don’t retry to send a message if the server rejects the recipient address
|
||||
rescue_from Net::SMTPSyntaxError do |_error|
|
||||
message.perform_deliveries = false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue