demarches-normaliennes/app/mailers/gestionnaire_mailer.rb

21 lines
442 B
Ruby
Raw Normal View History

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
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