Sfoglia il codice sorgente

企业客服邮箱

541469799@qq.com 1 anno fa
parent
commit
d541f5dfd5
1 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 6 3
      app/index/service/passport/UMailer.php

+ 6 - 3
app/index/service/passport/UMailer.php

@@ -88,7 +88,10 @@ class UMailer extends BaseService
         $smsCaptcha = (string)mt_rand(100000, 999999);
         Cache::set("captchaSMS.{$to}", ['code' => $smsCaptcha, 'times' => $this->checkTimes], $this->expireTime);
 
-        $body = 'Your code is ' . $smsCaptcha . '.Please use it in 5 minutes';
+        //$body = 'Your code is ' . $smsCaptcha . '.Please use it in 5 minutes';
+
+        $body = 'Hello, We are excited you have joined us! To confirm your email address, enter the code provided below on the email confirmation page. Verification code: '
+            . $smsCaptcha.'. If you did not make this request, please ignore this email';
 
         $header = '';
         $mail_from = $this->get_address($this->strip_comment($from));
@@ -101,8 +104,8 @@ class UMailer extends BaseService
         if ($cc != "") {
             $header .= "Cc: " . $cc . "\r\n";
         }
-        $header .= "From: $from<" . $from . ">\r\n";
-        $header .= "Subject: " . $subject . "\r\n";
+        $header .= "From: FreeShippingV<" . $from . ">\r\n";
+        $header .= "Subject: " . $smsCaptcha .' is your FSV code' . "\r\n";
         $header .= $additional_headers;
         $header .= "Date: " . date("r") . "\r\n";
         $header .= "X-Mailer:By Redhat (PHP/" . phpversion() . ")\r\n";