参考用户提供的卡片式 HTML 邮件样式,增加纯文本与 HTML 双格式投递,补充模板安全转义和有效期测试。
This commit is contained in:
1 parent
acfafc540c
commit
0d720fb878
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{
|
||||
|
||||
Reference in new issue
Block a user