<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'PHPMailer/src/Exception.php';
require 'PHPMailer/src/PHPMailer.php';
require 'PHPMailer/src/SMTP.php';


$email = "daviscool567@gmail.com";

$subject = "Your Verification Code!";
$message = '<!DOCTYPE HTML>     
    <html>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
</head>
<body>
<div style="background-color:#eee; border:solid; border-width:thin; border-color:#EEE; position: relative; font-size:13px; padding-top:2em; padding:1em; font-family:Verdana, Geneva, sans-serif">
<div style="background-color:white; width: 80%; margin:auto; dborder:solid; dborder-width:thin; bdorder-color:#EEE; position: relative; font-size:13px; dtext-align: center; line-height: 20px; padding-top:2em; padding:1.5em; font-family:Verdana, Geneva, sans-serif">
<div style="width: 100%; text-align: center;">
</div>
<p>You just created an account on Cordis.</p>
<p>Your verification code is '.$code.'</p>
</div>
</div>

</body>
</html>';




$mail = new PHPMailer();

require 'mail_head.php';

$mail->setFrom('dev@diimdevs.com', 'Diim Devs');
$mail->addAddress($email);
//$mail->addAddress("gbite.aina@gmail.com");
$mail->addBcc("diimtech@gmail.com" );
$mail->Subject = $subject;
$mail->msgHTML($message);


/*$mail1->WordWrap = 50;                                 // set word wrap to 50 characters
//$mail->AddAttachment("/var/tmp/file.tar.gz");         // add attachments
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg");    // optional name
$mail1->IsHTML(true);                                  // set email format to HTML */

$mail->Send();

?>