This commit is contained in:
KANE LAZENI 2026-03-18 14:19:56 +00:00
parent 051a610451
commit b4fdf76612
2 changed files with 18 additions and 3 deletions

View File

@ -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 "<br> <br> <br>";
*/
/*
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'];

View File

@ -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";