From cbdc047514986d9dde9dbaf70099eecfa6d44488 Mon Sep 17 00:00:00 2001 From: Narindra ezway Date: Tue, 1 Apr 2025 11:48:00 +0300 Subject: [PATCH] refactor email body formatting in GestionService --- gestion/lib/Service/GestionService.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gestion/lib/Service/GestionService.php b/gestion/lib/Service/GestionService.php index 0622663..9340132 100644 --- a/gestion/lib/Service/GestionService.php +++ b/gestion/lib/Service/GestionService.php @@ -536,15 +536,12 @@ class GestionService { $this->userConnectedStorage->getFullPath("/"); $subject = "Piece jointe"; $body = " -

Bonjour.

-

Vous trouverez ci-dessous l'email et le(s) pièce(s) jointe(s) de « $defunt_nom ».

-

Vous en souhaitant bonne réception

+

Bonjour.

+

Vous trouverez ci-dessous l'email et le(s) pièce(s) jointe(s) de « $defunt_nom ».

+

Vous en souhaitant bonne réception

-
{$emailBody['subject']}
-
{$emailBody['body']}
- - - "; +
" . ($emailBody['subject'] ?? '') . "
+
" . ($emailBody['body'] ?? '') . "
"; $message = $this->mailer->createMessage(); $message->setSubject($subject);