class GestionnaireMailer < ApplicationMailer def new_gestionnaire email, password send_mail email, password, "Vous avez été nommé accompagnateur sur la plateforme TPS" end def last_week_overview(gestionnaire, overview) headers['X-mailjet-campaign'] = 'last_week_overview' send_mail gestionnaire.email, overview, 'Résumé de la semaine' end private def vars_mailer email, args @args = args @email = email end def send_mail email, args, subject vars_mailer email, args mail(to: email, subject: subject) end end