<?php
	
	$email = $email;
	$name = "(no-reply) Team GEESE";
	$subject = 'GEESE Verification Code';
	$content = "
		<h1 style='font-size: 22px;'><center>" . $email . "</center></h1>

		<p>Hi " . $username . ",</p>

	    <p>We are team behined project GEESE. We would like to extend our gratitude for your joining to GEESE Surveys.</p>

	    <p>Although your account has already been setup. But we need to verify your account before you can use it.</p>

	    <p>This is just to validate your input credentials, and for security reasons and we research purposes.</p>

	    <p>Once you sign-up/sign-in for the first time you will directed to a page to activate your account by putting in a specific verify code generated from our website.</p>

	    <p>Your verification code is: <b>".$verify_code."</b></p>
	";

	// Mailing [function]
		include_once(dir_rootPHP.'php/request/send_email.php');

		if($mail->send()){
	  //       // Logged-in
			// session_start();
			// $_SESSION['userID'] = $id;
			// $_SESSION['user'] = $username;
			// $_SESSION['email'] = $email;
			// $_SESSION['accountType'] = $accountType;
			
			// $output['success'] = true;
			// $output['session'] = array("user" => $_SESSION['user'], "accountType" => $_SESSION['accountType']);

			// // header('location: '.dirname(__FILE__).'./../logged.php');
			// header('location: '.dir_root.'verify-email.php');
	    }else{
	  //       // Logged-in
			// session_start();
			// $_SESSION['userID'] = $id;
			// $_SESSION['user'] = $username;
			// $_SESSION['email'] = $email;
			// $_SESSION['accountType'] = $accountType;
			
			// $output['success'] = true;
			// $output['session'] = array("user" => $_SESSION['user'], "accountType" => $_SESSION['accountType']);

			// // header('location: '.dirname(__FILE__).'./../logged.php');
			// header('location: '.dir_root.'verify-email.php');
	    }
?>