[Web] Fix transport_check over port 465, fixes #2386
parent
ae512018a8
commit
1e79ea6c7e
|
@ -58,6 +58,9 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$mail->SMTPDebug = 3;
|
$mail->SMTPDebug = 3;
|
||||||
|
if ($port == 465) {
|
||||||
|
$mail->SMTPSecure = "ssl";
|
||||||
|
}
|
||||||
$mail->Debugoutput = function($str, $level) {
|
$mail->Debugoutput = function($str, $level) {
|
||||||
foreach(preg_split("/((\r?\n)|(\r\n?)|\n)/", $str) as $line){
|
foreach(preg_split("/((\r?\n)|(\r\n?)|\n)/", $str) as $line){
|
||||||
if (empty($line)) { continue; }
|
if (empty($line)) { continue; }
|
||||||
|
|
Loading…
Reference in New Issue