!273 修复邮件发送报类找不到的问题

Merge pull request !273 from 一半/master
pull/273/MERGE
F4nniu 2021-01-30 17:21:40 +08:00 committed by Gitee
commit 504e50e65c
1 changed files with 1 additions and 1 deletions

View File

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