44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
// date_default_timezone_set('Etc/UTC');
|
|
// date_default_timezone_set("Africa/Kigali");
|
|
require 'PHPMailer/PHPMailerAutoload.php';
|
|
|
|
$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 = 'smtp.office365.com';
|
|
|
|
$mail->Port = 587;
|
|
|
|
$mail->SMTPSecure = 'tls';
|
|
|
|
$mail->SMTPAuth = true;
|
|
|
|
// $mail->Username = "intersanteebene@gmail.com";
|
|
// $mail->Username = "intersante@radiant.rw";
|
|
$mail->Username = "bkwitonda@radiant.rw";
|
|
|
|
// $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
|
|
// $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
|