优化验证码邮件模板

参考用户提供的卡片式 HTML 邮件样式,增加纯文本与 HTML 双格式投递,补充模板安全转义和有效期测试。
This commit is contained in:
xuans committed 2026-10-06 11:30:45 +08:00
1 parent c4115e5215
commit 66c3f04e4b
3 files changed
+122 -4

No files matched your search

@@ -152,6 +152,7 @@ func deliverVerificationWithProjectMailContext(deliveryContext context.Context,
},
Subject: subject,
Text: []byte(text),
HTML: []byte(verification.CodeHTML(challenge, code)),
MsgID: messageID,
}
ctx := &appcontext.Context{