From d99663c378a364af51320ed26ee72efdf3184c06 Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Thu, 12 Sep 2024 16:16:26 +0100
Subject: [PATCH] :sparkles: Feat(Integrator) - mailLib is now allowing
 unsecure mail and non authentication to server relay

Mail relay server can be un-authenticated and self sign certified.
---
 src/FusionDirectory/Mail/MailLib.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/FusionDirectory/Mail/MailLib.php b/src/FusionDirectory/Mail/MailLib.php
index 0293e8b..b6ab1e1 100644
--- a/src/FusionDirectory/Mail/MailLib.php
+++ b/src/FusionDirectory/Mail/MailLib.php
@@ -72,13 +72,13 @@ class MailLib
       $this->mail->AuthType   = 'LOGIN';
     } else {
       // Disable SSL certificate verification
-      $this->mail->SMTPOptions = array(
-        'ssl' => array(
+      $this->mail->SMTPOptions = [
+        'ssl' => [
           'verify_peer'       => FALSE,
           'verify_peer_name'  => FALSE,
           'allow_self_signed' => TRUE
-        )
-      );
+        ]
+      ];
     }
 
 
-- 
GitLab