An error occurred while loading the file. Please try again.
-
Adam Reese authored
Adds an `unreleased` flag to the version if not building from HEAD of a tag. The compatibility check is bypassed if the client or server are unreleased. fixes #2110
Unverified2e819e01
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'phpmailer/src/Exception.php';
require 'phpmailer/src/PHPMailer.php';
require 'phpmailer/src/SMTP.php';
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
if(isset($_POST["send"])){
$mail = new PHPMailer(true);
$mail->isSMTP();
$mail->SMTPDebug = 1;
$mail->Host = "smtp.gmail.com";
$mail->SMTPAuth = true;
$mail->Username = 'rrradzhabov@miem.hse.ru';
$mail->Password = 'password';
$mail->SMTPSecure = 'ssl';
$mail->Port = 465;
$mail->setFrom('rrradzhabov@miem.hse.ru');
$mail->addAddress($_POST["email"]);
$mail->isHTML(true);
$mail->Subject = "Complaint about English site";
$mail->Body = $_POST["message"];
$mail->send();
echo "
<script>
document.location.href = 'menu.html';
alert('Thank you for your time. We will fix the problem in no time.');
</script>
";
}
else{
echo
"
<script>
alert('Web page does not work as it should. Please contact us via workemail2000@mail.ru and we will fixed it as soon as possible.');
</script>
";
}
?>