2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-14 16:09:20 +01:00
|
|
|
class ApplicationMailer < ActionMailer::Base
|
2024-03-26 20:00:54 +01:00
|
|
|
include MailerDefaultsConfigurableConcern
|
2023-01-16 11:34:36 +01:00
|
|
|
include MailerDolistConcern
|
2023-01-10 15:36:58 +01:00
|
|
|
include MailerMonitoringConcern
|
2023-01-23 14:56:05 +01:00
|
|
|
include BalancedDeliveryConcern
|
2023-10-18 07:10:26 +02:00
|
|
|
include PriorityDeliveryConcern
|
2023-01-10 00:40:16 +01:00
|
|
|
|
2019-06-21 09:50:33 +02:00
|
|
|
helper :application # gives access to all helpers defined within `application_helper`.
|
2020-07-23 15:09:47 +02:00
|
|
|
default from: "#{APPLICATION_NAME} <#{CONTACT_EMAIL}>"
|
2015-12-14 16:09:20 +01:00
|
|
|
layout 'mailer'
|
2019-07-17 14:41:37 +02:00
|
|
|
|
2023-06-26 10:14:38 +02:00
|
|
|
before_action -> { Sentry.set_tags(mailer: mailer_name, action: action_name) }
|
2015-12-14 16:09:20 +01:00
|
|
|
end
|