feat(procedure): send notifications after closing
This commit is contained in:
parent
c147d9b36c
commit
c95f0f1cad
13 changed files with 307 additions and 11 deletions
|
@ -74,6 +74,15 @@ class UserMailer < ApplicationMailer
|
|||
mail(to: user.email, subject: @subject)
|
||||
end
|
||||
|
||||
def notify_after_closing(user, content, procedure = nil)
|
||||
@user = user
|
||||
@subject = "Clôture d'une démarche sur Démarches simplifiées"
|
||||
@procedure = procedure
|
||||
@content = content
|
||||
|
||||
mail(to: user.email, subject: @subject, content: @content, procedure: @procedure)
|
||||
end
|
||||
|
||||
def self.critical_email?(action_name)
|
||||
[
|
||||
'france_connect_merge_confirmation',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue