fix(mailer): dolist header in devise mailer

This commit is contained in:
Colin Darie 2023-01-11 18:50:35 +01:00
parent 9ff100fad5
commit 01f227e1c7
2 changed files with 2 additions and 2 deletions

View file

@ -5,8 +5,6 @@ class ApplicationMailer < ActionMailer::Base
default from: "#{APPLICATION_NAME} <#{CONTACT_EMAIL}>"
layout 'mailer'
before_action :add_dolist_header
# Attach the procedure logo to the email (if any).
# Returns the attachment url.
def attach_logo(procedure)

View file

@ -2,6 +2,8 @@ module MailerMonitoringConcern
extend ActiveSupport::Concern
included do
before_action :add_dolist_header
# Dont retry to send a message if the server rejects the recipient address
rescue_from Net::SMTPSyntaxError do |_exception|
message.perform_deliveries = false