wesmiler 3 лет назад
Родитель
Сommit
0055dc4f87
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Services/EmailService.php

+ 2 - 2
app/Services/EmailService.php

@@ -90,8 +90,8 @@ class EmailService extends BaseService
             $mail->CharSet ="UTF-8";                                         //设定邮件编码
             $mail->SMTPDebug = 0;                                            //调试模式输出:0 不输出,2 输出
             $mail->Timeout = 10;                                            //超时
-//            $mail->Mailer = 'SMTP';
-            $mail->isSendmail();                                                 //使用SMTP
+            $mail->Mailer = 'SMTP';
+//            $mail->isSendmail();                                                 //使用SMTP
             $mail->Host = $this->config['host'];                                     // SMTP服务器:以QQ为例
             $mail->SMTPAuth = true;                                          // 允许 SMTP 认证
             $mail->Username = $this->config['username'];                     // SMTP用户名: 即发送方的邮箱