Class: ApplicationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/templates/app/mailers/application_mailer.rb

Instance Method Summary collapse

Instance Method Details

#send_batch_mail(to, title, body) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/templates/app/mailers/application_mailer.rb', line 5

def send_batch_mail(to, title, body)
  mail_hash = {
      to: to,
      subject: title,
      body: body,
      content_type: 'text/html',
  }

  mail(mail_hash)
end