diff --git a/Controleur/Ebenegmail.php b/Controleur/Ebenegmail.php
index 7dc12cf..84bf5c6 100644
--- a/Controleur/Ebenegmail.php
+++ b/Controleur/Ebenegmail.php
@@ -11,13 +11,15 @@ $mail->isSMTP();
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
+
$mail->SMTPDebug = 0;
+// $mail->SMTPDebug = 1;
+// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html';
-$mail->Host = 'smtp.gmail.com';
-// $mail->Host = gethostbyname('smtp.gmail.com');
-// if your network does not support SMTP over IPv6
+// $mail->Host = 'smtp.gmail.com';
+$mail->Host = 'smtp.office365.com';
$mail->Port = 587;
@@ -25,12 +27,17 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
-$mail->Username = "intersanteebene@gmail.com";
-// $mail->Password = "Moritio1973";
-$mail->Password = "hftebsmxzqviinuh";
+// $mail->Username = "intersanteebene@gmail.com";
+// $mail->Username = "intersante@radiant.rw";
+$mail->Username = "bkwitonda@radiant.rw";
-// $mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE : MEDICARE');
-$mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
+// $mail->Password = "Moritio1973";
+// $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');
// à activer en cas de besoin
diff --git a/Cron/Cronenvoimailadhrent.php b/Cron/Cronenvoimailadhrent.php
index 8e5cf1e..3a2a656 100644
--- a/Cron/Cronenvoimailadhrent.php
+++ b/Cron/Cronenvoimailadhrent.php
@@ -72,15 +72,29 @@ class Cronenvoimailadhrent
// : ".$this->nomProduitSante;
$this->email->Subject = $this->objet . " : ".$this->nomProduitSante;
$this->email->Body = $this->body;
+
+ /*
+ var_dump($this->email);
+ echo "
";
+ */
if(!$this->email->send())
{
+ // Message d'erreur détaillé de PHPMailer
+ $erreur = $this->email->ErrorInfo;
+ echo "Erreur d'envoi : " . $erreur;
+ echo "
";
+
$this->marquermail($this->idMail, "9");
+
}
else
{
+ echo "Message envoye";
+ echo "
";
+
$this->marquermail($this->idMail, "1");
- }
+ }
sleep(1);
}
@@ -98,7 +112,11 @@ class Cronenvoimailadhrent
$this->objet = $un_mail['objet'];
$this->body = $un_mail['message'];
-
+ /*
+ var_dump($un_mail);
+ echo "
";
+ */
+
$this->envoyer_un_des_mail();
sleep(1);
@@ -116,6 +134,9 @@ $nbMail = $envoimaildivers->nbMailParCron;
$envoimaildivers->charger_les_mails($nbMail);
+/*
+var_dump($envoimaildivers->lesMails);
+exit();
+*/
+
$envoimaildivers->envoyer_les_mails();
-
-
diff --git a/Cron/Ebenegmail.php b/Cron/Ebenegmail.php
index 7dc12cf..84bf5c6 100644
--- a/Cron/Ebenegmail.php
+++ b/Cron/Ebenegmail.php
@@ -11,13 +11,15 @@ $mail->isSMTP();
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
+
$mail->SMTPDebug = 0;
+// $mail->SMTPDebug = 1;
+// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html';
-$mail->Host = 'smtp.gmail.com';
-// $mail->Host = gethostbyname('smtp.gmail.com');
-// if your network does not support SMTP over IPv6
+// $mail->Host = 'smtp.gmail.com';
+$mail->Host = 'smtp.office365.com';
$mail->Port = 587;
@@ -25,12 +27,17 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
-$mail->Username = "intersanteebene@gmail.com";
-// $mail->Password = "Moritio1973";
-$mail->Password = "hftebsmxzqviinuh";
+// $mail->Username = "intersanteebene@gmail.com";
+// $mail->Username = "intersante@radiant.rw";
+$mail->Username = "bkwitonda@radiant.rw";
-// $mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE : MEDICARE');
-$mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
+// $mail->Password = "Moritio1973";
+// $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');
// à activer en cas de besoin