diff --git a/app/mailers/invite_mailer.rb b/app/mailers/invite_mailer.rb index f488f3d56..eff179b52 100644 --- a/app/mailers/invite_mailer.rb +++ b/app/mailers/invite_mailer.rb @@ -2,7 +2,9 @@ class InviteMailer < ApplicationMailer def invite_user(invite) subject = "Participez à l'élaboration d'un dossier" - send_mail(invite, subject, invite.email_sender) if invite.user.present? + if invite.user.present? + send_mail(invite, subject, invite.email_sender) + end end def invite_guest(invite)