<?php

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

require '../phpMailer/src/Exception.php';
require '../phpMailer/src/PHPMailer.php';
require '../phpMailer/src/SMTP.php';
require '../phpMailer/src/POP3.php';

$mail = new PHPMailer(true);                              // Passing `true` enables exceptions

$mail->SMTPDebug = 1;                                 // Enable verbose debug output
$mail->IsSMTP(); // enable SMTP
$mail->SMTPDebug = 0;  // debugging: 1 = errors and messages, 2 = messages only
$mail->SMTPAuth = true;  // authentication enabled
$mail->SMTPSecure = 'ssl'; // secure transfer enabled REQUIRED for GMail
$mail->Host = 'smtp.gmail.com';
$mail->Port = 465; 
$mail->Username = "amirstuk@gmail.com";  
$mail->Password = "Dhaka1971";   
$mail->setFrom('DoNotReply@westk.co.uk');                          // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587;                                    // TCP port to connect to



?>