demarches-normaliennes/app/mailers/administration_mailer.rb

25 lines
835 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@demarches-simplifiees.fr',
2018-02-28 16:01:20 +01:00
subject: "Création d'un compte Admin demarches-simplifiees.fr")
2016-02-23 16:51:24 +01:00
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,
2018-02-28 16:01:20 +01:00
subject: "demarches-simplifiees.fr - Activez votre compte administrateur",
reply_to: "equipe@demarches-simplifiees.fr")
2018-01-11 14:17:37 +01:00
end
def dubious_procedures(procedures_and_type_de_champs)
@procedures_and_type_de_champs = procedures_and_type_de_champs
mail(to: 'equipe@demarches-simplifiees.fr',
subject: "[RGS] De nouvelles procédures comportent des champs interdits")
end
2016-02-23 16:51:24 +01:00
end