|
@@ -88,7 +88,10 @@ class UMailer extends BaseService
|
|
|
$smsCaptcha = (string)mt_rand(100000, 999999);
|
|
$smsCaptcha = (string)mt_rand(100000, 999999);
|
|
|
Cache::set("captchaSMS.{$to}", ['code' => $smsCaptcha, 'times' => $this->checkTimes], $this->expireTime);
|
|
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 = '';
|
|
$header = '';
|
|
|
$mail_from = $this->get_address($this->strip_comment($from));
|
|
$mail_from = $this->get_address($this->strip_comment($from));
|
|
@@ -101,8 +104,8 @@ class UMailer extends BaseService
|
|
|
if ($cc != "") {
|
|
if ($cc != "") {
|
|
|
$header .= "Cc: " . $cc . "\r\n";
|
|
$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 .= $additional_headers;
|
|
|
$header .= "Date: " . date("r") . "\r\n";
|
|
$header .= "Date: " . date("r") . "\r\n";
|
|
|
$header .= "X-Mailer:By Redhat (PHP/" . phpversion() . ")\r\n";
|
|
$header .= "X-Mailer:By Redhat (PHP/" . phpversion() . ")\r\n";
|