Browse Source

修复注册

541469799@qq.com 1 year ago
parent
commit
7a75abb0ef
1 changed files with 7 additions and 0 deletions
  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