no message

This commit is contained in:
hellcat committed 2025-06-29 18:20:13 +08:00
1 parent aa809d41d1
commit da234f841e
1 file changed
+37
+37
View File
@@ -65,6 +65,43 @@ final class Mail
}
public function test_yuejiqi()
{
$subject = "福云 - 重要通知:域名地址变更!";
$text = "<br>原主域名fuuu.cloud被封禁,已更换为fuuuu.cloud(多了一个u)。<br><br>无法继续翻墙的用户需到网站上重新复制订阅。<br><br>很抱歉对您的使用造成影响,补偿有套餐用户30g流量。";
$content = strip_tags(
str_replace(
['<p>','</p>'],
['','<br><br>'],
$text
),
['br', 'a', 'strong']
);
// $users = (new User())->where('class', '>=', 0)->get();
$users = (new User())->where("email", "[email protected]")->get();
$i = 0;
foreach ($users as $user) {
(new EmailQueue())->add_bulk(
$user->email,
$subject,
'war.tpl',
[
'user' => $user,
'text' => $content,
]
);
$i++;
}
return "邮件队列添加".$i."条";
}