|
@@ -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; }
|