From 1e79ea6c7e2934816bcebff91bbaab36c5f31a2f Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 2 Mar 2019 20:32:01 +0100 Subject: [PATCH] [Web] Fix transport_check over port 465, fixes #2386 --- data/web/inc/ajax/transport_check.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/web/inc/ajax/transport_check.php b/data/web/inc/ajax/transport_check.php index cbf253a9..e956f4f2 100644 --- a/data/web/inc/ajax/transport_check.php +++ b/data/web/inc/ajax/transport_check.php @@ -58,6 +58,9 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi ) ); $mail->SMTPDebug = 3; + if ($port == 465) { + $mail->SMTPSecure = "ssl"; + } $mail->Debugoutput = function($str, $level) { foreach(preg_split("/((\r?\n)|(\r\n?)|\n)/", $str) as $line){ if (empty($line)) { continue; }