Class: InternalNotificationMailer

Inherits:
ApplicationMailer show all
Includes:
SendgridSmtpApi::InternalMailerHeaders
Defined in:
app/mailers/internal_notification_mailer.rb

Overview

Shared base for internal team / ops notification mailers.

Holds all cross-cutting configuration (SendGrid engagement-tracking opt-out,
default sender, layout, delivery job, URL options, view helpers) for the
domain mailers extracted from the former InternalMailer god object. Each
domain mailer (EdiMailer, WorkforceMailer, …) inherits from this class; the
+prepend+ below splices into every subclass's ancestor chain so the
+X-SMTPAPI+ header applies to all internal mail.

See Also:

  • doc/tasks/202606131218_INTERNAL_MAILER_DECOMPOSITIONdoc/tasks/202606131218_INTERNAL_MAILER_DECOMPOSITION.md

Instance Method Summary collapse

Methods included from SendgridSmtpApi::InternalMailerHeaders

#mail

Methods inherited from ApplicationMailer

#null_mail

Instance Method Details

#default_url_optionsObject



28
29
30
# File 'app/mailers/internal_notification_mailer.rb', line 28

def default_url_options
  UrlHelper.default_url_options({ host: CRM_HOSTNAME })
end