diff --git a/gestion/lib/Service/GestionService.php b/gestion/lib/Service/GestionService.php index 8694895..0622663 100644 --- a/gestion/lib/Service/GestionService.php +++ b/gestion/lib/Service/GestionService.php @@ -526,10 +526,13 @@ class GestionService { $client->logout(); } - return $fullMessage["body"] ?? ''; + return [ + "body" => $fullMessage["body"] ?? '', + "subject" => $fullMessage["subject"] ?? '', + ]; } - public function sendEmailAndAttachment($to , $defunt_nom ,$emailBody = '' ,$attachments = []){ + public function sendEmailAndAttachment($to , $defunt_nom ,$emailBody = [] ,$attachments = []){ $this->userConnectedStorage->getFullPath("/"); $subject = "Piece jointe"; $body = " @@ -537,7 +540,11 @@ class GestionService {

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

Vous en souhaitant bonne réception

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