From 4464cdca28ae30b17e4984141c35053281eda6d6 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Fri, 11 Jan 2019 18:04:30 +0800 Subject: [PATCH] =?UTF-8?q?email=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/base/Email.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extend/base/Email.php b/extend/base/Email.php index f78af4b76..5b3c5cd06 100755 --- a/extend/base/Email.php +++ b/extend/base/Email.php @@ -9,6 +9,7 @@ // | Author: Devil // +---------------------------------------------------------------------- namespace base; + use phpmailer\PHPMailer; /** @@ -52,11 +53,8 @@ class Email */ private function EmailInit() { - // 引入邮件发送类库 - //require ROOT.'extend'.DS.'phpmailer'.DS.'class.phpmailer.php'; - // 建立邮件发送类 - $this->obj= new PHPMailer(); + $this->obj = new PHPMailer(); // 使用smtp方式发送 $this->obj->IsSMTP();