radiantassure/Cron/Ebenegmail.php
2025-12-07 09:35:13 +00:00

38 lines
917 B
PHP
Executable File

<?php
// date_default_timezone_set('Etc/UTC');
// 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->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = 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;
$mail->Username = "intersanteebene@gmail.com";
$mail->Password = "Moritio1973";
$mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE');
// à activer en cas de besoin
// $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));