Browse Source

U邮件发送

541469799@qq.com 1 year ago
parent
commit
44d9b8bd88
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/index/controller/Captcha.php

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

@@ -64,12 +64,12 @@ class Captcha extends Controller
         $data = $this->postForm();
         $data = $this->postForm();
         $email = $data['mobile'] ?? '';
         $email = $data['mobile'] ?? '';
         if (empty($email)) {
         if (empty($email)) {
-            return $this->renderError('Failed to send code. Please try again later');
+            return $this->renderError('Invalid email address.');
         }
         }
 
 
         $smtp = new UMailer(config('smtp.host'), config('smtp.port'), true,
         $smtp = new UMailer(config('smtp.host'), config('smtp.port'), true,
             config('smtp.username'), config('smtp.password'));
             config('smtp.username'), config('smtp.password'));
-        $smtp->debug = false;                     //是否显示发送的调试信息
+        $smtp->debug = true;                     //是否显示发送的调试信息
         $flag = $smtp->sendmail($email, config('smtp.username'));
         $flag = $smtp->sendmail($email, config('smtp.username'));
         if ($flag) {
         if ($flag) {
             return $this->renderSuccess('Sent Successful!Please check your new mails.');
             return $this->renderSuccess('Sent Successful!Please check your new mails.');