Class: NotificationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/notification_mailer.rb

Instance Method Summary collapse

Instance Method Details

#notify(help_request) ⇒ Object



3
4
5
6
7
8
# File 'app/mailers/notification_mailer.rb', line 3

def notify(help_request)
  mail(from: sender_email(help_request),
      to: recipients_list,
      subject: "#{t('sufia.product_name')}: Help Request - #{help_request.id} [#{Rails.env}]",
      body: prepare_body(help_request))
end