demarches-normaliennes/app/mailers/administration_mailer.rb

25 lines
781 B
Ruby
Raw Normal View History

class AdministrationMailer < ApplicationMailer
layout 'mailers/layout'
def new_admin_email admin, administration
2016-02-23 16:51:24 +01:00
@admin = admin
@administration = administration
2016-02-23 16:51:24 +01:00
mail(to: 'tech@tps.apientreprise.fr',
2016-02-23 16:51:24 +01:00
subject: "Création d'un compte Admin TPS")
end
2018-01-11 14:17:37 +01:00
def invite_admin(admin, reset_password_token)
@reset_password_token = reset_password_token
mail(to: admin.email,
subject: "TPS - Activez votre compte administrateur",
reply_to: "equipe@tps.apientreprise.fr")
end
def dubious_procedures(procedures_and_type_de_champs)
@procedures_and_type_de_champs = procedures_and_type_de_champs
mail(to: 'equipe@tps.apientreprise.fr',
subject: "[RGS] De nouvelles procédures comportent des champs interdits")
end
2016-02-23 16:51:24 +01:00
end