openly fail when not delivering mail

This commit is contained in:
clemkeirua 2020-02-05 10:32:20 +01:00
parent 40a90ca4b7
commit 415cc2c2f1
3 changed files with 0 additions and 20 deletions

View file

@ -3,11 +3,6 @@ class ApplicationMailer < ActionMailer::Base
default from: "demarches-simplifiees.fr <#{CONTACT_EMAIL}>"
layout 'mailer'
# Dont retry to send a message if the server rejects the recipient address
rescue_from Net::SMTPSyntaxError do |_error|
message.perform_deliveries = false
end
# Attach the procedure logo to the email (if any).
# Returns the attachment url.
def attach_logo(procedure)