Add gestionnaire management

This commit is contained in:
Guillaume Lazzara 2016-02-09 11:00:13 +01:00
parent 2a2aef34db
commit b58b0de8b0
4 changed files with 87 additions and 13 deletions

View file

@ -0,0 +1,20 @@
class GestionnaireMailer < ApplicationMailer
def new_gestionnaire email, password
send_mail email, password, "Vous avez été nommé accompagnateur sur la plateforme TPS"
end
private
def vars_mailer email, password
@password = password
@email = email
end
def send_mail email, password, subject
vars_mailer email, password
mail(from: "tps@apientreprise.fr", to: email,
subject: subject)
end
end