Bladeren bron

Weenier utc项目部署 0625

wesmiler 3 jaren geleden
bovenliggende
commit
b74121d51f
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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->isSMTP();                                                 //使用SMTP
+//            $mail->Mailer = 'SMTP';
+            $mail->isSendmail();                                                 //使用SMTP
             $mail->Host = $this->config['host'];                                     // SMTP服务器:以QQ为例
             $mail->SMTPAuth = true;                                          // 允许 SMTP 认证
             $mail->Username = $this->config['username'];                     // SMTP用户名: 即发送方的邮箱