Class: Partner::StaffMailer
Instance Method Summary
collapse
#log_mailer, #switch_locale
#parse_json
Instance Method Details
#forgot_password(staff, link, locale, reset_password_token) ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'app/mailers/partner/staff_mailer.rb', line 10
def forgot_password(staff, link, locale, reset_password_token)
@staff = staff
return unless @staff
@reset_password_link = link
@reset_password_token = reset_password_token
cc = [SUPPORT_EMAIL]
subject = 'hungryhub.com - Forgot Password'
I18n.with_locale(locale) do
mail(
to: @staff.email,
cc: cc,
subject: subject,
)
end
log_mailer({
email: @staff.email,
cc: cc,
name: 'Partner::StaffMailer#forgot_password',
subject: subject
})
end
|
#staff_getstarted(staff_id, locale) ⇒ Object
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'app/mailers/partner/staff_mailer.rb', line 33
def staff_getstarted(staff_id, locale)
@staff = Staff.find_by(id: staff_id)
return unless @staff
subject = 'hungryhub.com - Verify email address'
I18n.with_locale(locale) do
mail(
to: @staff.email,
subject: subject,
)
end
log_mailer({
email: @staff.email,
name: 'Partner::StaffMailer#staff_getstarted',
subject: subject
})
end
|