|
@@ -61,6 +61,9 @@ class Ems
|
|
|
if($event == 'resetpwd'){
|
|
|
$message = self::msg_pwd($code);
|
|
|
}
|
|
|
+ if($event == 'cancleuser'){
|
|
|
+ $message = self::msg_cancleuser($code);
|
|
|
+ }
|
|
|
|
|
|
$obj = new Email();
|
|
|
$result = $obj
|
|
@@ -105,6 +108,20 @@ class Ems
|
|
|
return $str;
|
|
|
}
|
|
|
|
|
|
+ private static function msg_cancleuser($code){
|
|
|
+ $str =
|
|
|
+ 'Hello!<br/>
|
|
|
+ We have received your request to delete your account for our app.<br>
|
|
|
+ Please use the OTP code below to verify your email address:<br>
|
|
|
+ <strong>'.$code.'</strong><br>
|
|
|
+ The OTP will expire in '. ceil(self::$expire / 60).' minutes.<br>
|
|
|
+ Sincerely,<br>
|
|
|
+ Elin Dance Studio Customer Support
|
|
|
+ ';
|
|
|
+
|
|
|
+ return $str;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 发送通知
|
|
|
*
|