Merge pull request #8414 from colinux/devise-mailer-dolist-header

fix(mailer): dolist header in devise mailer
This commit is contained in:
Colin Darie 2023-01-11 19:00:08 +01:00 committed by GitHub
commit 72e31d4d90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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}>" default from: "#{APPLICATION_NAME} <#{CONTACT_EMAIL}>"
layout 'mailer' layout 'mailer'
before_action :add_dolist_header
# Attach the procedure logo to the email (if any). # Attach the procedure logo to the email (if any).
# Returns the attachment url. # Returns the attachment url.
def attach_logo(procedure) def attach_logo(procedure)

View file

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