diff --git a/core/core.php b/core/core.php index 47742a6a..d34d6706 100755 --- a/core/core.php +++ b/core/core.php @@ -852,13 +852,14 @@ class common { ob_start(); include 'core/layout/mail.php'; $layout = ob_get_clean(); - $mail = new PHPMailer\PHPMailer\PHPMailer; - // $mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_SERVER; + $mail = new PHPMailer\PHPMailer\PHPMailer; // Mail try{ // Paramètres SMTP if ($this->getdata(['config','smtp','enable'])) { + // $mail->SMTPDebug = PHPMailer\PHPMailer\SMTP::DEBUG_SERVER; $mail->isSMTP(); + $mail->SMTPAutoTLS = false; $mail->Host = $this->getdata(['config','smtp','host']); $mail->Port = (int) $this->getdata(['config','smtp','port']); if ($this->getData(['config','smtp','auth'])) { diff --git a/core/module/config/view/index/index.js.php b/core/module/config/view/index/index.js.php index e4c85d3d..f0faf8c7 100755 --- a/core/module/config/view/index/index.js.php +++ b/core/module/config/view/index/index.js.php @@ -14,12 +14,12 @@ * Modification de l'affichage de l'icône de langues */ - -var configdisablei18nDOM = $("#configdisablei18n"); -configdisablei18nDOM.on("change", function() { - if ($("input[name=configdisablei18n]").is(':checked')) { - $(".zwiico-flag").css('display','none'); +$("input[name=configSmtpEnable]").on("change", function() { + if ($("input[name=configSmtpEnable]").is(':checked')) { + $(".configSmtpParam").addClass("disabled"); + $(".configSmtpParam").slideDown(); } else { - $(".zwiico-flag").css('display','block'); + $(".configSmtpParam").removeClass("disabled"); + $(".configSmtpParam").slideUp(); } }); \ No newline at end of file diff --git a/core/module/config/view/index/index.php b/core/module/config/view/index/index.php index 694131b0..4642b2be 100755 --- a/core/module/config/view/index/index.php +++ b/core/module/config/view/index/index.php @@ -335,55 +335,57 @@ ]); ?> -