Class: Effective::PostmarkMailer
- Inherits:
-
Object
- Object
- Effective::PostmarkMailer
- Includes:
- EffectiveMailer, EffectivePostmarkMailer
- Defined in:
- app/mailers/effective/postmark_mailer.rb
Instance Method Summary collapse
Methods included from EffectivePostmarkMailer
#effective_postmark_error, #effective_postmark_inactive_recipient_error
Instance Method Details
#reactivated(resource, opts = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/mailers/effective/postmark_mailer.rb', line 6 def reactivated(resource, opts = {}) raise('expected an effective_postmark_user') unless resource.class.try(:effective_postmark_user?) @user = resource subject = subject_for(__method__, 'Your email address has been reactivated', resource, opts) headers = headers_for(resource, opts) mail(to: resource.email, subject: subject, **headers) end |