Class: RequestMailer

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

Instance Method Summary collapse

Instance Method Details

#request_received_email(request) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'public/app/mailers/request_mailer.rb', line 2

def request_received_email(request)
  user_email = request.user_email

  @request = request

  mail(from: email_address(@request),
       to: user_email,
       subject: I18n.t('request.email.subject', :title => request.title))
end

#request_received_staff_email(request) ⇒ Object



12
13
14
15
16
17
18
# File 'public/app/mailers/request_mailer.rb', line 12

def request_received_staff_email(request)
  @request = request

  mail(from: email_address(@request),
       to: email_address(@request, :to),
       subject: I18n.t('request.email.subject', :title => request.title))
end