Move email send from to send func
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -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>",
|
||||
|
||||
Reference in New Issue
Block a user