demarches-normaliennes/app/mailers/administrateur_mailer.rb

16 lines
529 B
Ruby
Raw Normal View History

# Preview all emails at http://localhost:3000/rails/mailers/administrateur_mailer
class AdministrateurMailer < ApplicationMailer
layout 'mailers/layout'
def activate_before_expiration(user, reset_password_token)
@user = user
@reset_password_token = reset_password_token
@expiration_date = @user.reset_password_sent_at + Devise.reset_password_within
2021-05-26 15:16:30 +02:00
@subject = "N'oubliez pas dactiver votre compte administrateur"
2018-05-31 23:58:10 +02:00
mail(to: user.email,
subject: @subject,
reply_to: CONTACT_EMAIL)
end
end