From 030b6ef7a09ff5cd8c81c8c5d787b4525d72c3d7 Mon Sep 17 00:00:00 2001 From: Limezy Date: Tue, 20 Feb 2024 17:51:00 +0700 Subject: [PATCH] Update patch --- .../{main-02-mail.patch => main-01-mail.patch} | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) rename sources/patches/{main-02-mail.patch => main-01-mail.patch} (76%) diff --git a/sources/patches/main-02-mail.patch b/sources/patches/main-01-mail.patch similarity index 76% rename from sources/patches/main-02-mail.patch rename to sources/patches/main-01-mail.patch index ce40baa..2be4c32 100644 --- a/sources/patches/main-02-mail.patch +++ b/sources/patches/main-01-mail.patch @@ -1,9 +1,12 @@ diff --git a/www_data/lib/mail.php b/www_data/lib/mail.php -index 9b58b50..ff99f07 100644 +index 9b58b50..0112cc5 100644 --- a/www_data/lib/mail.php +++ b/www_data/lib/mail.php -@@ -15,13 +15,13 @@ function mail_init(){ +@@ -12,16 +12,14 @@ use PHPMailer\PHPMailer\PHPMailer; + function mail_init(){ + $mail = new PHPMailer(); +- $mail->isSMTP(); $mail->Host = SMTP_HOST; - $mail->SMTPAuth = true; @@ -15,13 +18,6 @@ index 9b58b50..ff99f07 100644 $mail->Port = SMTP_PORT; $mail->CharSet = 'UTF-8'; - -+ $mail->setFrom(SMTP_MAIL, 'moncycle.app'); return $mail; } -@@ -105,5 +105,3 @@ function mail_body_relance ($nom, $mail1) { - - HTML; - } -- -- \ No newline at end of file