From 5ddd230a3e3d34e437147ab9b506eee7b73ae5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 9 Sep 2020 19:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Abstracts/Callback.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HttpServer/Abstracts/Callback.php b/HttpServer/Abstracts/Callback.php index 06697e5f..8a6fe93b 100644 --- a/HttpServer/Abstracts/Callback.php +++ b/HttpServer/Abstracts/Callback.php @@ -112,6 +112,9 @@ abstract class Callback extends Application protected function system_mail($message) { try { + if (!Config::get('email.enable', false, false)) { + return; + } $mail = $this->createEmail(); $receives = Config::get('email.receive'); if (empty($receives) || !is_array($receives)) {