From 6497d4dcffb647a1dc731d8d716bb1afb56b6738 Mon Sep 17 00:00:00 2001 From: xushubieli Date: Fri, 22 Apr 2022 13:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E5=8F=8B=E6=8F=90=E4=BA=A4=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/libraries/mail.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/system/libraries/mail.class.php b/src/system/libraries/mail.class.php index 9ba24806..3bcac8a2 100755 --- a/src/system/libraries/mail.class.php +++ b/src/system/libraries/mail.class.php @@ -115,7 +115,10 @@ class smtp return $this->smtp_error("sending HELO command"); } if ($this->auth) { - if (!$this->smtp_putcmd("AUTH LOGIN", base64_encode($this->user))) { + if (!$this->smtp_putcmd("AUTH LOGIN")) { + return $this->smtp_error("sending AUTH LOGIN command"); + } + if (!$this->smtp_putcmd("", base64_encode($this->user))) { return $this->smtp_error("sending HELO command"); } if (!$this->smtp_putcmd("", base64_encode($this->pass))) {