Module: ResponsibleMailer
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/mailers/concerns/responsible_mailer.rb
Overview
When a credential becomes unresponsive, we often do not want to send it any new emails until they confirm/reconfirm that credential.
If you want your mailer to respect the unresponsive credential issue, Include ResponsibleMailer in your mailer.
When a credential first becomes unresponsive, we send a ConfirmatiomMailer#…followup email and abort the original email. We rely on MailerLog to avoid sending more confirmation emails to the credential.
NOTE: If using ReliableMailer, this module must be included after it.
Instance Method Summary collapse
-
#unresponsible! ⇒ Object
Add unresponsible! to any mailer action to allow that mail to send regardless of credential responsiveness.
Instance Method Details
#unresponsible! ⇒ Object
Add unresponsible! to any mailer action to allow that mail to send regardless of credential responsiveness.
32 33 34 |
# File 'app/mailers/concerns/responsible_mailer.rb', line 32 def unresponsible! @unresponsible = true end |