Class: Notifun::Notifier::EmailNotifier
- Inherits:
-
ParentNotifier
- Object
- ParentNotifier
- Notifun::Notifier::EmailNotifier
- Defined in:
- lib/notifun/notifiers/email_notifier.rb
Instance Attribute Summary
Attributes inherited from ParentNotifier
Instance Method Summary collapse
Methods inherited from ParentNotifier
Constructor Details
This class inherits a constructor from Notifun::Notifier::ParentNotifier
Instance Method Details
#notify!(email, subject, html, text, message_template, options) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/notifun/notifiers/email_notifier.rb', line 2 def notify!(email, subject, html, text, , ) begin Notifun::MessageMailer.(email, subject, html, text, , ).deliver_now @success = true rescue Net::SMTPSyntaxError => e @error_message = e. @success = false end end |