Move email send from to send func

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 09:02:29 +08:00
parent 97f5677a97
commit d04f8cdc44
2 changed files with 3 additions and 6 deletions

View File

@@ -70,6 +70,7 @@ func Magic(c *gin.Context) {
return
}
emailClient.Send(
"NixCN CMS <cms@yuri.nix.org.cn>",
req.Email,
"NixCN CMS Email Verify",
"<p>Click the link below to verify your email. This link will expire in 10 minutes.</p><a href="+url.String()+">"+url.String()+"</a>",