Class: HasHelpers::EmailNotifier

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/has_helpers/utils/email_notifier.rb

Overview

Email Notifier. Previously ::Frameworkhq::Notifier

Instance Method Summary collapse

Instance Method Details

#system(subject:, to: from_address, from: from_address, body: {}) ⇒ Object



5
6
7
8
# File 'lib/has_helpers/utils/email_notifier.rb', line 5

def system(subject:, to: from_address, from: from_address, body: {})
  @body = body
  mail(to: to, from: from, subject: subject, date: Time.zone.now)
end