From 6645b994d692fe982ff287e5cfbe659aee55b5e7 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 18 Mar 2026 18:08:35 +0000 Subject: [PATCH] a --- Cron/Cronenvoimailadhrent.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index 98e4f34..b3a4f81 100755 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -69,6 +69,15 @@ class Cronenvoimailadhrent $this->email->addAddress(trim($ad) ); } + if($this->emailCc>" ") + { + $ccs = explode(';', $this->emailCc); + foreach ($ccs as $cc) + { + $this->email->addCC(trim($cc) ); + } + } + // $this->email->Subject = $this->objet; // : ".$this->nomProduitSante; $this->email->Subject = $this->objet . " : ".$this->nomProduitSante; @@ -96,6 +105,7 @@ class Cronenvoimailadhrent { $this->idMail = $un_mail['idMail']; $this->emailDestination = $un_mail['email']; + $this->emailCc = $un_mail['emailCc']; $this->objet = $un_mail['objet']; $this->body = $un_mail['message'];