From e33dfa769273850713a7eceaa13fd3ee6e7d6fab Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Tue, 11 Nov 2025 18:48:25 +0800 Subject: [PATCH] no message --- resources/email/finance.tpl | 8 ++--- resources/email/new_user.tpl | 8 ++--- resources/email/password_reset.tpl | 8 ++--- resources/email/test.tpl | 8 ++--- resources/email/tip.tpl | 8 ++--- resources/email/traffic_report.tpl | 8 ++--- resources/email/verify_code.tpl | 8 ++--- resources/email/war.tpl | 8 ++--- resources/email/warn.tpl | 8 ++--- resources/views/tabler/email_test/finance.tpl | 6 ++-- resources/views/tabler/email_test/footer.tpl | 4 +-- .../views/tabler/email_test/new_user.tpl | 6 ++-- resources/views/tabler/email_test/one.tpl | 2 +- .../tabler/email_test/password_reset.tpl | 6 ++-- resources/views/tabler/email_test/test.tpl | 6 ++-- resources/views/tabler/email_test/tip.tpl | 35 +++++++++++++++++++ .../tabler/email_test/traffic_report.tpl | 6 ++-- .../views/tabler/email_test/verify_code.tpl | 6 ++-- resources/views/tabler/email_test/war.tpl | 35 +++++++++++++++++++ resources/views/tabler/email_test/warn.tpl | 6 ++-- src/Controllers/TestController.php | 5 +-- 21 files changed, 133 insertions(+), 62 deletions(-) create mode 100755 resources/views/tabler/email_test/tip.tpl create mode 100755 resources/views/tabler/email_test/war.tpl diff --git a/resources/email/finance.tpl b/resources/email/finance.tpl index 911b54662..5caacd78a 100755 --- a/resources/email/finance.tpl +++ b/resources/email/finance.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

{$title}

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

{$text}

diff --git a/resources/email/new_user.tpl b/resources/email/new_user.tpl index 76cf38079..95e9fa304 100755 --- a/resources/email/new_user.tpl +++ b/resources/email/new_user.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

账户已经生成

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

{$text}

diff --git a/resources/email/password_reset.tpl b/resources/email/password_reset.tpl index 520e7f906..2409f2feb 100755 --- a/resources/email/password_reset.tpl +++ b/resources/email/password_reset.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

密码重置

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

你收到此邮件是因为你在 {$config['appName']} 系统申请了密码重置,如果非本人申请,请忽略此邮件。

diff --git a/resources/email/test.tpl b/resources/email/test.tpl index 9bc7d94f0..f6adcb39c 100755 --- a/resources/email/test.tpl +++ b/resources/email/test.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">

+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

邮件发送测试

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

这是一封测试邮件。如果你能收到,说明邮件发送配置有效,可以正常工作。

diff --git a/resources/email/tip.tpl b/resources/email/tip.tpl index ed3c0ca2a..9bbeb945c 100755 --- a/resources/email/tip.tpl +++ b/resources/email/tip.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

运维通知

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

{$text}

diff --git a/resources/email/traffic_report.tpl b/resources/email/traffic_report.tpl index 1cb88528e..cec513263 100755 --- a/resources/email/traffic_report.tpl +++ b/resources/email/traffic_report.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

每日流量报告

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

用户名: {$user->user_name}
diff --git a/resources/email/verify_code.tpl b/resources/email/verify_code.tpl index f85223697..14bb732a2 100755 --- a/resources/email/verify_code.tpl +++ b/resources/email/verify_code.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">

+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

邮箱验证

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

你请求的邮箱验证代码为: {$code}
本验证代码在 {$expire} 前有效。
diff --git a/resources/email/war.tpl b/resources/email/war.tpl index 2090568b9..89eec515b 100755 --- a/resources/email/war.tpl +++ b/resources/email/war.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">

+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

重要通知

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

{$text}

diff --git a/resources/email/warn.tpl b/resources/email/warn.tpl index 87fa9841a..55fe232f0 100755 --- a/resources/email/warn.tpl +++ b/resources/email/warn.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

系统提示

@@ -20,10 +20,10 @@
-
+ style="padding-bottom:60px;padding-left:20px;padding-right:20px;" class="description">

{$text}

diff --git a/resources/views/tabler/email_test/finance.tpl b/resources/views/tabler/email_test/finance.tpl index 3f62fcd6c..5caacd78a 100755 --- a/resources/views/tabler/email_test/finance.tpl +++ b/resources/views/tabler/email_test/finance.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

{$title}

@@ -20,7 +20,7 @@
-
diff --git a/resources/views/tabler/email_test/footer.tpl b/resources/views/tabler/email_test/footer.tpl index aa7c89e6e..830c2fc1d 100755 --- a/resources/views/tabler/email_test/footer.tpl +++ b/resources/views/tabler/email_test/footer.tpl @@ -7,9 +7,9 @@ style="padding-top:15px;padding-bottom:30px;padding-left:10px;padding-right:10px;" class="brandInfo">

- {$config['appName']} | - 修改邮件接收设置

diff --git a/resources/views/tabler/email_test/new_user.tpl b/resources/views/tabler/email_test/new_user.tpl index ad57a95a1..95e9fa304 100755 --- a/resources/views/tabler/email_test/new_user.tpl +++ b/resources/views/tabler/email_test/new_user.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

账户已经生成

@@ -20,7 +20,7 @@
-
diff --git a/resources/views/tabler/email_test/one.tpl b/resources/views/tabler/email_test/one.tpl index e211b9557..f6c434d57 100755 --- a/resources/views/tabler/email_test/one.tpl +++ b/resources/views/tabler/email_test/one.tpl @@ -9,7 +9,7 @@ class="wrapperTable">

- +

diff --git a/resources/views/tabler/email_test/password_reset.tpl b/resources/views/tabler/email_test/password_reset.tpl index 682d77ece..2409f2feb 100755 --- a/resources/views/tabler/email_test/password_reset.tpl +++ b/resources/views/tabler/email_test/password_reset.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

密码重置

@@ -20,7 +20,7 @@
-
diff --git a/resources/views/tabler/email_test/test.tpl b/resources/views/tabler/email_test/test.tpl index 41fa8df22..f6adcb39c 100755 --- a/resources/views/tabler/email_test/test.tpl +++ b/resources/views/tabler/email_test/test.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

邮件发送测试

@@ -20,7 +20,7 @@
-
diff --git a/resources/views/tabler/email_test/tip.tpl b/resources/views/tabler/email_test/tip.tpl new file mode 100755 index 000000000..9bbeb945c --- /dev/null +++ b/resources/views/tabler/email_test/tip.tpl @@ -0,0 +1,35 @@ +{include file='header.tpl'} + + +
+
+
+
+
+
+
+

+ 运维通知 +

+
+
+
+
+
+
+
+
+

+ {$text} +

+
+
+
+
+ + {include file='footer.tpl'} diff --git a/resources/views/tabler/email_test/traffic_report.tpl b/resources/views/tabler/email_test/traffic_report.tpl index 2e3b9e201..cec513263 100755 --- a/resources/views/tabler/email_test/traffic_report.tpl +++ b/resources/views/tabler/email_test/traffic_report.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

每日流量报告

@@ -20,7 +20,7 @@
-
diff --git a/resources/views/tabler/email_test/verify_code.tpl b/resources/views/tabler/email_test/verify_code.tpl index 5b305cef9..14bb732a2 100755 --- a/resources/views/tabler/email_test/verify_code.tpl +++ b/resources/views/tabler/email_test/verify_code.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

邮箱验证

@@ -20,7 +20,7 @@
-
diff --git a/resources/views/tabler/email_test/war.tpl b/resources/views/tabler/email_test/war.tpl new file mode 100755 index 000000000..89eec515b --- /dev/null +++ b/resources/views/tabler/email_test/war.tpl @@ -0,0 +1,35 @@ +{include file='header.tpl'} + + +
+
+
+
+
+
+
+

+ 重要通知 +

+
+
+
+
+
+
+
+
+

+ {$text} +

+
+
+
+
+ + {include file='footer.tpl'} diff --git a/resources/views/tabler/email_test/warn.tpl b/resources/views/tabler/email_test/warn.tpl index 8464c4266..55fe232f0 100755 --- a/resources/views/tabler/email_test/warn.tpl +++ b/resources/views/tabler/email_test/warn.tpl @@ -6,11 +6,11 @@ style="padding-top:30px;table-layout:fixed;background-color:#EEEEEE;" id="bodyTable">
+ style="background-color:#FFFFFF;max-width:600px;text-align: center; border-radius: 6px 6px 0px 0px;" width="100%" class="wrapperTable">
-

+

系统提示

@@ -20,7 +20,7 @@
-
diff --git a/src/Controllers/TestController.php b/src/Controllers/TestController.php index 84cf8c9ab..d5dcf310b 100755 --- a/src/Controllers/TestController.php +++ b/src/Controllers/TestController.php @@ -20,7 +20,7 @@ use App\Services\TomTool\Http; use App\Services\TomTool\VisitorCount; use App\Command\Cron; -session_start(); +//session_start(); final class TestController extends BaseController { @@ -28,12 +28,13 @@ final class TestController extends BaseController public function test_mail(ServerRequest $request, Response $response, array $args) { +// echo 123;exit; return $response->write( $this->view() // ->assign('is_login', $user->isLogin) // ->assign('taocan', $taocan) ->assign('text', "xxxxxx") - ->fetch('email_test/one.tpl') + ->fetch('email_test/warn.tpl') ); }