This commit is contained in:
KANE LAZENI 2026-04-29 17:47:27 +00:00
parent 8a097abfda
commit 618ff728e3
2 changed files with 0 additions and 61 deletions

View File

@ -48,20 +48,6 @@ class Cronenvoimailadhrent
require '/var/www/Config/Ebenemailer.php';
$this->email = $_SESSION['c_mail'];
/*
var_dump(
array(
// "SESSION_c_mail" => $_SESSION['c_mail'],
// "c_mail" => $this->email,
"Host" => $this->email->Host,
"Username" => $this->email->Username,
"Password" => $this->email->Password,
"Port" => $this->email->Port,
)
);
exit;
*/
}
public function envoyer_un_des_mail()

View File

@ -1,47 +0,0 @@
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
// 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
$mail->SMTPDebug = 0;
// $mail->Debugoutput = 'html';
$mail->Host = 'smtp.gmail.com';
// $mail->Host = gethostbyname('smtp.gmail.com');
// if your network does not support SMTP over IPv6
$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 = "intersantesaas@gmail.com";
// $mail->Password = "Moritio1973";
$mail->Password = "qvix febq ylkp enks";
$mail->setFrom('intersantesaas@gmail.com', 'INTER-SANTE : EBENE');
$_SESSION['c_mail'] = $mail;