Class: DependentsApplicationFailureMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/dependents_application_failure_mailer.rb

Instance Method Summary collapse

Instance Method Details

#build(user) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/mailers/dependents_application_failure_mailer.rb', line 4

def build(user)
  opt = {}

  opt[:to] = [
    user.email
  ]

  template = File.read('app/mailers/views/dependents_application_failure.erb')

  mail(
    opt.merge(
      subject: t('dependency_claim_failure_mailer.subject'),
      body: ERB.new(template).result(binding)
    )
  )
end