fixing smtp 'no encryiption' option

This commit is contained in:
Filip 2020-01-10 11:27:08 +01:00
parent d570336f76
commit 0de2dadd38
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ $mail->Password = $_POST['password']; // Client's password
if ($_POST['encryption'] != "none") {
$mail->SMTPSecure = $_POST['encryption'];
}
else {
$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
}
$mail->Port = $_POST['port']; // SMTP Port
// Mail configuration

Binary file not shown.