clarion/app/mailers/volunteer_mailer.rb

32 lines
1.0 KiB
Ruby
Raw Normal View History

2015-10-21 23:13:39 +03:00
class VolunteerMailer < ActionMailer::Base
def team_notification(new_volunteer)
@volunteer = new_volunteer
2023-05-27 22:36:10 +03:00
mail(
to: @volunteer.conference.email,
subject: "Нов доброволец за #{@volunteer.conference.title}"
)
2015-10-21 23:13:39 +03:00
end
def volunteer_notification(new_volunteer)
@volunteer = new_volunteer
I18n.locale = @volunteer.language
mail(to: @volunteer.email,
reply_to: @volunteer.conference.email,
2024-04-18 21:48:34 +03:00
from: "OpenFest <cfp@openfest.org>",
2019-04-28 21:10:54 +03:00
subject: I18n.t("volunteer_mailer.success_notification.subject",
conference_name: @volunteer.conference.title))
2015-10-21 23:13:39 +03:00
end
2024-04-18 21:11:08 +03:00
def volunteer_email_confirmation(new_volunteer)
@volunteer = new_volunteer
I18n.locale = @volunteer.language
mail(to: @volunteer.email,
reply_to: @volunteer.conference.email,
2024-04-18 21:48:34 +03:00
from: "OpenFest <cfp@openfest.org>",
2024-04-18 21:11:08 +03:00
subject: I18n.t("volunteer_mailer.email_confirmation.subject",
conference_name: @volunteer.conference.title))
end
2015-10-21 23:13:39 +03:00
end