class Notifun::Notifier::EmailNotifier
Public Instance Methods
notify!(email, subject, html, text, message_template, options)
click to toggle source
# File lib/notifun/notifiers/email_notifier.rb, line 2 def notify!(email, subject, html, text, message_template, options) begin Notifun::MessageMailer.send_message(email, subject, html, text, message_template, options).deliver_now @success = true rescue Net::SMTPSyntaxError => e @error_message = e.message @success = false end end