fix(invite_mailer.invite_guest): bypass_unverified_mail_protection! for guests otherwise they will never receive the email
Co-Authored-By: Colin Darie <colin@darie.eu>
This commit is contained in:
parent
5d0d6e1bbc
commit
0e3ab79b28
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,8 @@ class InviteMailer < ApplicationMailer
|
|||
layout 'mailers/layout'
|
||||
|
||||
def invite_user(invite)
|
||||
bypass_unverified_mail_protection!
|
||||
|
||||
subject = "Participez à l'élaboration d’un dossier"
|
||||
targeted_user_link = invite.targeted_user_link || invite.create_targeted_user_link(target_context: 'invite',
|
||||
target_model: invite,
|
||||
|
@ -14,6 +16,8 @@ class InviteMailer < ApplicationMailer
|
|||
end
|
||||
|
||||
def invite_guest(invite)
|
||||
bypass_unverified_mail_protection!
|
||||
|
||||
subject = "#{invite.email_sender} vous invite à consulter un dossier"
|
||||
targeted_user_link = invite.targeted_user_link || invite.create_targeted_user_link(target_context: 'invite',
|
||||
target_model: invite)
|
||||
|
|
Loading…
Reference in a new issue