From c550465f377cbd91c8330653e1808e38b7f0fccb Mon Sep 17 00:00:00 2001 From: hiralph Date: Mon, 20 May 2019 17:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=82=AE=E4=BB=B6=E5=8F=91=E4=BB=B6=E4=BA=BA?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/Email.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/common/library/Email.php b/application/common/library/Email.php index acd24984..bb236fee 100644 --- a/application/common/library/Email.php +++ b/application/common/library/Email.php @@ -64,13 +64,13 @@ class Email $this->mail->isSMTP(); $this->mail->SMTPAuth = true; $this->mail->Host = $this->options['mail_smtp_host']; - $this->mail->Username = $this->options['mail_smtp_user']; + $this->mail->Username = $this->options['mail_from']; $this->mail->Password = $this->options['mail_smtp_pass']; $this->mail->SMTPSecure = isset($securArr[$this->options['mail_verify_type']]) ? $securArr[$this->options['mail_verify_type']] : ''; $this->mail->Port = $this->options['mail_smtp_port']; //设置发件人 - $this->from($this->options['mail_from']); + $this->from($this->options['mail_from'], $this->options['mail_smtp_user']); } /** -- Gitee