浏览代码

注销的电子邮件模板

lizhen_gitee 7 月之前
父节点
当前提交
f62b1fb977
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      application/common/library/Ems.php

+ 17 - 0
application/common/library/Ems.php

@@ -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;
+    }
+
     /**
      * 发送通知
      *