2016-02-09 11:00:13 +01:00
|
|
|
class GestionnaireMailer < ApplicationMailer
|
|
|
|
|
|
|
|
def new_gestionnaire email, password
|
|
|
|
send_mail email, password, "Vous avez été nommé accompagnateur sur la plateforme TPS"
|
|
|
|
end
|
|
|
|
|
2016-05-24 16:39:39 +02:00
|
|
|
def new_assignement email, email_admin
|
|
|
|
send_mail email, email_admin, "Vous avez été assigné à un nouvel administrateur sur la plateforme TPS"
|
|
|
|
end
|
|
|
|
|
2016-02-09 11:00:13 +01:00
|
|
|
private
|
|
|
|
|
2016-05-24 16:39:39 +02:00
|
|
|
def vars_mailer email, args
|
|
|
|
@args = args
|
2016-02-09 11:00:13 +01:00
|
|
|
@email = email
|
|
|
|
end
|
|
|
|
|
2016-05-24 16:39:39 +02:00
|
|
|
def send_mail email, args, subject
|
|
|
|
vars_mailer email, args
|
2016-02-09 11:00:13 +01:00
|
|
|
|
2017-05-11 18:24:43 +02:00
|
|
|
mail(to: email, subject: subject)
|
2016-02-09 11:00:13 +01:00
|
|
|
end
|
|
|
|
end
|