Merge pull request #8414 from colinux/devise-mailer-dolist-header
fix(mailer): dolist header in devise mailer
This commit is contained in:
commit
72e31d4d90
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -2,6 +2,8 @@ module MailerMonitoringConcern
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
included do
|
included do
|
||||||
|
before_action :add_dolist_header
|
||||||
|
|
||||||
# Don’t retry to send a message if the server rejects the recipient address
|
# Don’t 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
|
||||||
|
|
Loading…
Reference in a new issue