class Mail::Notify::Mailer

Public Instance Methods

template_mail(template_id, headers) click to toggle source
# File lib/mail/notify/mailer.rb, line 12
def template_mail(template_id, headers)
  raise ArgumentError, "You must specify a template ID" if template_id.blank?

  mail(headers.merge(body: "", subject: "", template_id: template_id))
end
view_mail(template_id, headers) click to toggle source
# File lib/mail/notify/mailer.rb, line 6
def view_mail(template_id, headers)
  raise ArgumentError, "You must specify a template ID" if template_id.blank?

  mail(headers.merge(template_id: template_id))
end