浏览代码

修复注册

541469799@qq.com 1 年之前
父节点
当前提交
7a75abb0ef
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/index/service/passport/MailCaptcha.php

+ 7 - 0
app/index/service/passport/MailCaptcha.php

@@ -138,6 +138,13 @@ class MailCaptcha extends BaseService
         try {
             //Server settings
             $mail->SMTPDebug = SMTP::DEBUG_OFF;                      //Enable verbose debug output
+            $mail->SMTPOptions = array(
+                'ssl' => array(
+                    'verify_peer' => false,
+                    'verify_peer_name' => false,
+                    'allow_self_signed' => true
+                )
+            );
             $mail->isSMTP();                                            //Send using SMTP             //SMTP password
             $mail->Host = config('smtp.host');                     //Set the SMTP server to send through
             $mail->SMTPAuth = true;                                   //Enable SMTP authentication