a
This commit is contained in:
parent
e0c802f8f9
commit
2fd53094ff
42
Controleur/Ebenegmail.php
Executable file → Normal file
42
Controleur/Ebenegmail.php
Executable file → Normal file
|
|
@ -1,30 +1,25 @@
|
|||
<?php
|
||||
// date_default_timezone_set('Etc/UTC');
|
||||
// date_default_timezone_set("Africa/Kigali");
|
||||
require 'PHPMailer/PHPMailerAutoload.php';
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
$mail = new PHPMailer;
|
||||
|
||||
// Inclusion des fichiers
|
||||
require 'PHPMailer/Exception.php';
|
||||
require 'PHPMailer/PHPMailer.php';
|
||||
require 'PHPMailer/SMTP.php';
|
||||
|
||||
$mail = new PHPMailer(true);
|
||||
$mail->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;
|
||||
|
|
|
|||
26
Cron/Ebenegmail.php
Executable file → Normal file
26
Cron/Ebenegmail.php
Executable file → Normal file
|
|
@ -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__));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user