This commit is contained in:
KANE LAZENI 2026-02-19 16:04:31 +00:00
parent 5963476be6
commit 5e4aaf4a5c
3 changed files with 55 additions and 20 deletions

View File

@ -11,13 +11,15 @@ $mail->isSMTP();
// 0 = off (for production use) // 0 = off (for production use)
// 1 = client messages // 1 = client messages
// 2 = client and server messages // 2 = client and server messages
$mail->SMTPDebug = 0; $mail->SMTPDebug = 0;
// $mail->SMTPDebug = 1;
// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html'; // $mail->Debugoutput = 'html';
$mail->Host = 'smtp.gmail.com'; // $mail->Host = 'smtp.gmail.com';
// $mail->Host = gethostbyname('smtp.gmail.com'); $mail->Host = 'smtp.office365.com';
// if your network does not support SMTP over IPv6
$mail->Port = 587; $mail->Port = 587;
@ -25,12 +27,17 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true; $mail->SMTPAuth = true;
$mail->Username = "intersanteebene@gmail.com"; // $mail->Username = "intersanteebene@gmail.com";
// $mail->Password = "Moritio1973"; // $mail->Username = "intersante@radiant.rw";
$mail->Password = "hftebsmxzqviinuh"; $mail->Username = "bkwitonda@radiant.rw";
// $mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE : MEDICARE'); // $mail->Password = "Moritio1973";
$mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY'); // $mail->Password = "radiant@123?";
// $mail->Password = "ybad kjir ghck aokr";
$mail->Password = "office@2650000";
// $mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
$mail->setFrom('intersante@radiant.rw', 'RADIANT INSURANCE COMPANY');
$mail->addReplyTo('verification@radiant.rw', 'RADIANT INSURANCE COMPANY'); $mail->addReplyTo('verification@radiant.rw', 'RADIANT INSURANCE COMPANY');
// à activer en cas de besoin // à activer en cas de besoin

View File

@ -73,12 +73,26 @@ class Cronenvoimailadhrent
$this->email->Subject = $this->objet . " : ".$this->nomProduitSante; $this->email->Subject = $this->objet . " : ".$this->nomProduitSante;
$this->email->Body = $this->body; $this->email->Body = $this->body;
/*
var_dump($this->email);
echo "<br> <br> <br>";
*/
if(!$this->email->send()) if(!$this->email->send())
{ {
// Message d'erreur détaillé de PHPMailer
$erreur = $this->email->ErrorInfo;
echo "Erreur d'envoi : " . $erreur;
echo "<br> <br> <br>";
$this->marquermail($this->idMail, "9"); $this->marquermail($this->idMail, "9");
} }
else else
{ {
echo "Message envoye";
echo "<br> <br> <br>";
$this->marquermail($this->idMail, "1"); $this->marquermail($this->idMail, "1");
} }
@ -98,6 +112,10 @@ class Cronenvoimailadhrent
$this->objet = $un_mail['objet']; $this->objet = $un_mail['objet'];
$this->body = $un_mail['message']; $this->body = $un_mail['message'];
/*
var_dump($un_mail);
echo "<br> <br> <br>";
*/
$this->envoyer_un_des_mail(); $this->envoyer_un_des_mail();
@ -116,6 +134,9 @@ $nbMail = $envoimaildivers->nbMailParCron;
$envoimaildivers->charger_les_mails($nbMail); $envoimaildivers->charger_les_mails($nbMail);
/*
var_dump($envoimaildivers->lesMails);
exit();
*/
$envoimaildivers->envoyer_les_mails(); $envoimaildivers->envoyer_les_mails();

View File

@ -11,13 +11,15 @@ $mail->isSMTP();
// 0 = off (for production use) // 0 = off (for production use)
// 1 = client messages // 1 = client messages
// 2 = client and server messages // 2 = client and server messages
$mail->SMTPDebug = 0; $mail->SMTPDebug = 0;
// $mail->SMTPDebug = 1;
// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html'; // $mail->Debugoutput = 'html';
$mail->Host = 'smtp.gmail.com'; // $mail->Host = 'smtp.gmail.com';
// $mail->Host = gethostbyname('smtp.gmail.com'); $mail->Host = 'smtp.office365.com';
// if your network does not support SMTP over IPv6
$mail->Port = 587; $mail->Port = 587;
@ -25,12 +27,17 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true; $mail->SMTPAuth = true;
$mail->Username = "intersanteebene@gmail.com"; // $mail->Username = "intersanteebene@gmail.com";
// $mail->Password = "Moritio1973"; // $mail->Username = "intersante@radiant.rw";
$mail->Password = "hftebsmxzqviinuh"; $mail->Username = "bkwitonda@radiant.rw";
// $mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE : MEDICARE'); // $mail->Password = "Moritio1973";
$mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY'); // $mail->Password = "radiant@123?";
// $mail->Password = "ybad kjir ghck aokr";
$mail->Password = "office@2650000";
// $mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
$mail->setFrom('intersante@radiant.rw', 'RADIANT INSURANCE COMPANY');
$mail->addReplyTo('verification@radiant.rw', 'RADIANT INSURANCE COMPANY'); $mail->addReplyTo('verification@radiant.rw', 'RADIANT INSURANCE COMPANY');
// à activer en cas de besoin // à activer en cas de besoin