<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
$credentials = [
"supplier" => [
"user" => "office@lock8.ca",
"pass" => 'plza)q$FHY'
],
"customer" => [
"user" => "sales@lock8.ca",
"pass" => 'Xsw9e5*9gdy'
]
];
require_once("Exception.php");
require_once("PHPMailer.php");
require_once("SMTP.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "smtp.office365.com";
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Username = 'sales@lock8.ca';
$mail->Password = 'Xsw9e5*9gdy';
/* $mail->Password = 'xswqaz$95*'; */
$mail->From = 'sales@lock8.ca';
$mail->SMTPDebug = 2;
$mail->FromName = "LOCK8 ONLINE";
$mail->Subject = 'TEST';
$mail->Body = 'This is Test Message';
$mail->AddAddress("dima@vestrainet.com");
$mail->IsHTML(true);
$mail->Send();
?>