From b4fdf76612444f2832b1ccd5108f38b2b0457898 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 18 Mar 2026 14:19:56 +0000 Subject: [PATCH] a --- Cron/Cronenvoimailadhrent.php | 15 ++++++++++++--- Cron/Ebenegmail.php | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php index ff745f3..cb9a4d6 100755 --- a/Cron/Cronenvoimailadhrent.php +++ b/Cron/Cronenvoimailadhrent.php @@ -67,14 +67,22 @@ 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->email->Body = $this->body; - /* var_dump($this->email); echo "


"; - */ + /* if(!$this->email->send()) { // Message d'erreur détaillé de PHPMailer @@ -92,6 +100,7 @@ class Cronenvoimailadhrent $this->marquermail($this->idMail, "1"); } + */ sleep(1); } @@ -106,7 +115,7 @@ class Cronenvoimailadhrent { $this->idMail = $un_mail['idMail']; $this->emailDestination = $un_mail['email']; - $this->emailDestination = $un_mail['email']; + $this->emailCc = $un_mail['emailCc']; $this->objet = $un_mail['objet']; $this->body = $un_mail['message']; diff --git a/Cron/Ebenegmail.php b/Cron/Ebenegmail.php index f4b53dc..3adae1e 100755 --- a/Cron/Ebenegmail.php +++ b/Cron/Ebenegmail.php @@ -26,6 +26,12 @@ $mail->Port = 587; $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; +// ajout du 18/03/2026 + +$mail->CharSet = 'UTF-8'; +$mail->SMTPKeepAlive = true; // ← connexion réutilisée pour tout le batch +$mail->Timeout = 15; +// fin ajout 18/03/2026 // $mail->Username = "intersanteebene@gmail.com"; // $mail->Username = "intersante@radiant.rw";