Module: SendgridSmtpApi::InternalMailerHeaders
- Included in:
- InternalNotificationMailer, QuoteMailer
- Defined in:
- lib/sendgrid_smtp_api.rb
Overview
Prepended on +InternalNotificationMailer+ so every internal email disables SendGrid engagement apps
(same intent as the old +sendgrid_disable+ instance API; the class-level DSL was ineffective).
Instance Method Summary collapse
-
#mail(headers = {}) ⇒ Mail::Message
The mail with the X-SMTPAPI header set.
Instance Method Details
#mail(headers = {}) ⇒ Mail::Message
Returns the mail with the X-SMTPAPI header set.
46 47 48 49 50 51 |
# File 'lib/sendgrid_smtp_api.rb', line 46 def mail(headers = {}, &) self.headers['X-SMTPAPI'] = SendgridSmtpApi.build_x_smtpapi_header( disabled_filters: %i[ganalytics opentrack clicktrack] ) super end |