diff --git a/Controleur/Ebenegmail.php b/Controleur/Ebenegmail.php old mode 100755 new mode 100644 index 7040520..84bf5c6 --- a/Controleur/Ebenegmail.php +++ b/Controleur/Ebenegmail.php @@ -1,30 +1,25 @@ CharSet = 'UTF-8'; // Utiliser UTF-8 -$mail->Encoding = 'base64'; // Encodage du contenu $mail->isSMTP(); //Enable SMTP debugging // 0 = off (for production use) // 1 = client messages -// 2 = // dev => client and server messages -// $mail->SMTPDebug = 2; // dev => client and server 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; @@ -32,10 +27,19 @@ $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; -$mail->Username = "intersantesaas@gmail.com"; +// $mail->Username = "intersanteebene@gmail.com"; +// $mail->Username = "intersante@radiant.rw"; +$mail->Username = "bkwitonda@radiant.rw"; + // $mail->Password = "Moritio1973"; -$mail->Password = "qvix febq ylkp enks"; +// $mail->Password = "radiant@123?"; +// $mail->Password = "ybad kjir ghck aokr"; +$mail->Password = "office@2650000"; -$mail->setFrom('intersantesaas@gmail.com', 'INTER-SANTE : EBENE'); +// $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 +// $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__)); -$_SESSION['c_mail'] = $mail; diff --git a/Cron/Ebenegmail.php b/Cron/Ebenegmail.php old mode 100755 new mode 100644 index b3e3792..84bf5c6 --- a/Cron/Ebenegmail.php +++ b/Cron/Ebenegmail.php @@ -3,22 +3,23 @@ // date_default_timezone_set("Africa/Kigali"); require 'PHPMailer/PHPMailerAutoload.php'; -$mail = new PHPMailer(true); -$mail->CharSet = 'UTF-8'; // Utiliser UTF-8 -$mail->Encoding = 'base64'; // Encodage du contenu +$mail = new PHPMailer; + $mail->isSMTP(); //Enable SMTP debugging // 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; @@ -26,11 +27,18 @@ $mail->SMTPSecure = 'tls'; $mail->SMTPAuth = true; -$mail->Username = "intersanteebene@gmail.com"; +// $mail->Username = "intersanteebene@gmail.com"; +// $mail->Username = "intersante@radiant.rw"; +$mail->Username = "bkwitonda@radiant.rw"; -$mail->Password = "Moritio1973"; +// $mail->Password = "Moritio1973"; +// $mail->Password = "radiant@123?"; +// $mail->Password = "ybad kjir ghck aokr"; +$mail->Password = "office@2650000"; -$mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE'); +// $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 // $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));