Explorar el Código

修复邮件发送时Log类找不到的致命错误

一半 hace 4 años
padre
commit
76b31ced93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/common/library/Email.php

+ 1 - 1
application/common/library/Email.php

@@ -62,7 +62,7 @@ class Email
         $secureArr = [0 => '', 1 => 'tls', 2 => 'ssl'];
         $secure = isset($secureArr[$this->options['mail_verify_type']]) ? $secureArr[$this->options['mail_verify_type']] : '';
 
-        $this->mail = new Mailer(new Log);
+        $this->mail = new Mailer();
         $this->mail->setServer($this->options['mail_smtp_host'], $this->options['mail_smtp_port'], $secure);
         $this->mail->setAuth($this->options['mail_from'], $this->options['mail_smtp_pass']);