Remove the prefix from our emails’ subjects
This commit is contained in:
parent
845987aedd
commit
d7a8a103d7
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ class AdministrateurMailer < ApplicationMailer
|
||||||
@administrateur = administrateur
|
@administrateur = administrateur
|
||||||
@reset_password_token = reset_password_token
|
@reset_password_token = reset_password_token
|
||||||
@expiration_date = @administrateur.reset_password_sent_at + Devise.reset_password_within
|
@expiration_date = @administrateur.reset_password_sent_at + Devise.reset_password_within
|
||||||
subject = "demarches-simplifiees.fr - N'oubliez pas d'activer votre compte administrateur"
|
subject = "N'oubliez pas d'activer votre compte administrateur"
|
||||||
|
|
||||||
mail(to: administrateur.email,
|
mail(to: administrateur.email,
|
||||||
subject: subject,
|
subject: subject,
|
||||||
|
|
|
@ -13,7 +13,7 @@ class AdministrationMailer < ApplicationMailer
|
||||||
def invite_admin(admin, reset_password_token)
|
def invite_admin(admin, reset_password_token)
|
||||||
@reset_password_token = reset_password_token
|
@reset_password_token = reset_password_token
|
||||||
@admin = admin
|
@admin = admin
|
||||||
subject = "demarches-simplifiees.fr - Activez votre compte administrateur"
|
subject = "Activez votre compte administrateur"
|
||||||
|
|
||||||
mail(to: admin.email,
|
mail(to: admin.email,
|
||||||
subject: subject,
|
subject: subject,
|
||||||
|
@ -21,7 +21,7 @@ class AdministrationMailer < ApplicationMailer
|
||||||
end
|
end
|
||||||
|
|
||||||
def refuse_admin(admin_email)
|
def refuse_admin(admin_email)
|
||||||
subject = "demarches-simplifiees.fr - Votre demande de compte a été refusée"
|
subject = "Votre demande de compte a été refusée"
|
||||||
|
|
||||||
mail(to: admin_email,
|
mail(to: admin_email,
|
||||||
subject: subject,
|
subject: subject,
|
||||||
|
|
|
@ -4,7 +4,7 @@ class GestionnaireMailer < ApplicationMailer
|
||||||
def invite_gestionnaire(gestionnaire, reset_password_token)
|
def invite_gestionnaire(gestionnaire, reset_password_token)
|
||||||
@reset_password_token = reset_password_token
|
@reset_password_token = reset_password_token
|
||||||
@gestionnaire = gestionnaire
|
@gestionnaire = gestionnaire
|
||||||
subject = "demarches-simplifiees.fr - Activez votre compte accompagnateur"
|
subject = "Activez votre compte accompagnateur"
|
||||||
|
|
||||||
mail(to: gestionnaire.email,
|
mail(to: gestionnaire.email,
|
||||||
subject: subject,
|
subject: subject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
class InviteMailer < ApplicationMailer
|
class InviteMailer < ApplicationMailer
|
||||||
def invite_user(invite)
|
def invite_user(invite)
|
||||||
vars_mailer(invite)
|
vars_mailer(invite)
|
||||||
subject = "demarches-simplifiees.fr - Participez à l'élaboration d'un dossier"
|
subject = "Participez à l'élaboration d'un dossier"
|
||||||
|
|
||||||
send_mail(invite.email, subject, invite.email_sender) if invite.user.present?
|
send_mail(invite.email, subject, invite.email_sender) if invite.user.present?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue