From 8e5ae01ff21a404ec7ba3adfdc1b279c967c6f13 Mon Sep 17 00:00:00 2001 From: Limezy Date: Tue, 20 Feb 2024 19:54:02 +0700 Subject: [PATCH] Update main-01-mail.patch --- sources/patches/main-01-mail.patch | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sources/patches/main-01-mail.patch b/sources/patches/main-01-mail.patch index 7b729a3..2be4c32 100644 --- a/sources/patches/main-01-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..54553cf 100644 +index 9b58b50..0112cc5 100644 --- a/www_data/lib/mail.php +++ b/www_data/lib/mail.php -@@ -15,10 +15,10 @@ 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; @@ -14,4 +17,7 @@ index 9b58b50..54553cf 100644 + $mail->SMTPSecure = false; $mail->Port = SMTP_PORT; $mail->CharSet = 'UTF-8'; - +- + $mail->setFrom(SMTP_MAIL, 'moncycle.app'); + return $mail; + }