From 79e2579a3db2d87315eab2d53cabe37696508e4c Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Tue, 14 Feb 2023 07:05:47 +0800 Subject: [PATCH] feat: update email template --- web/app/models/UOJMail.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/web/app/models/UOJMail.php b/web/app/models/UOJMail.php index 547776e..0cf1549 100644 --- a/web/app/models/UOJMail.php +++ b/web/app/models/UOJMail.php @@ -31,7 +31,7 @@ class UOJMail { $oj_name = UOJConfig::$data['profile']['oj-name']; $oj_name_short = UOJConfig::$data['profile']['oj-name-short']; $oj_url = HTML::url('/'); - $oj_logo_url = HTML::url('/images/logo_small.png'); + $oj_email_address = UOJConfig::$data['mail']['noreply']['username']; foreach ($emails as $email) { $user = UOJUser::query($email['receiver']); @@ -50,8 +50,8 @@ class UOJMail {
-
{$oj_name_short}
- + +
{$oj_name_short}


@@ -69,13 +69,18 @@ class UOJMail {
{$oj_name} +
+ {$email['created_at']}
+

您之所以收到本邮件,是因为您是 {$oj_name} 的用户。
本邮件由系统自动发送,请勿回复。 +
+ 若本邮件不是出现在正常收件箱内,请把我们的发信邮箱地址 {$oj_email_address} 添加到您的邮箱白名单内,以免错过重要通知。
EOD);