" . $content . "
"; require_once dir_rootPHP."php/request/PHPMailer/PHPMailer.php"; require_once dir_rootPHP."php/request/PHPMailer/SMTP.php"; require_once dir_rootPHP."php/request/PHPMailer/Exception.php"; $mail = new PHPMailer(); // include_once "PHPMailer/connect_smtp.php"; //smtp settings $mail->isSMTP(); $mail->Host = "smtp.gmail.com"; $mail->SMTPAuth = true; $mail->Username = "teamgesse2020@gmail.com"; //Enter your password and replace you gmail above with mine $mail->Password = "teamgeese1234"; $mail->Port = 465; $mail->SMTPSecure = "ssl"; //Email Settings $mail->isHTML(true); $mail->setFrom($email,$name); $mail->addAddress($email); $mail->Subject = $subject; $mail->Body = $body; // 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'); // } ?>