demarches-normaliennes/app/mailers/administration_mailer.rb

34 lines
1 KiB
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
@admin = admin
2018-05-31 23:58:10 +02:00
2018-01-11 14:17:37 +01:00
mail(to: admin.email,
2018-02-28 16:01:20 +01:00
subject: "demarches-simplifiees.fr - Activez votre compte administrateur",
reply_to: "contact@demarches-simplifiees.fr")
2018-01-11 14:17:37 +01:00
end
def refuse_admin(admin_email)
mail(to: admin_email,
subject: "demarches-simplifiees.fr - Votre demande de compte a été refusée",
reply_to: "contact@demarches-simplifiees.fr")
end
def dubious_procedures(procedures_and_type_de_champs)
@procedures_and_type_de_champs = procedures_and_type_de_champs
2018-05-31 23:58:10 +02:00
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