Browse Source

[Web] Fix transport_check over port 465, fixes #2386

andryyy 6 years ago
parent
commit
1e79ea6c7e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      data/web/inc/ajax/transport_check.php

+ 3 - 0
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; }