소스 검색

测试邮件发送

zhangdehua 9 달 전
부모
커밋
c8e1d96255
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      app/index/controller/Captcha.php
  2. 1 1
      app/index/service/passport/MailCaptcha.php

+ 3 - 3
app/index/controller/Captcha.php

@@ -56,11 +56,11 @@ class Captcha extends Controller
     }
 
     /**
-     * 发送邮箱验证码
+     * 发送邮箱验证码Umail
      * @return Json
      * @throws BaseException
      */
-    public function sendEmailCaptcha(): Json
+    public function sendEmailCaptchaUmail(): Json
     {
         $data = $this->postForm();
         $email = $data['mobile'] ?? '';
@@ -122,7 +122,7 @@ class Captcha extends Controller
      * @return Json
      * @throws BaseException
      */
-    public function sendEmailCaptchaSm(): Json
+    public function sendEmailCaptcha(): Json
     {
         $data = $this->postForm();
         $email = $data['mobile'] ?? '';

+ 1 - 1
app/index/service/passport/MailCaptcha.php

@@ -116,7 +116,7 @@ class MailCaptcha extends BaseService
 
             //Content
             //$mail->isHTML(true);                                  //Set email format to HTML
-            $mail->Subject = 'Password';
+            $mail->Subject = 'Code';
             $mail->Body = 'Your code is ' . $smsCaptcha . '.Please use it in 15 minutes';
             $mail->AltBody = 'This is the Your Code for FreeShippingV';