Class: UserQueryMailer

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

Instance Method Summary collapse

Instance Method Details

#request_for_help(user_query) ⇒ Object


2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'app/mailers/user_query_mailer.rb', line 2

def request_for_help(user_query)
  @user_query = user_query
  @from = user_query.from
  @to = user_query.to
  @subject = 'Request for help'
  @date = user_query.date
  mail(
    from: @from,
    to: @to,
    subject: @subject,
    sent_on: @date
  )
end