1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-26 12:18:36 +00:00

Refactor mail code (#33768)

`mail.go` contains various different functions, it's time to split it.
This commit is contained in:
wxiaoguang
2025-03-03 11:31:47 +08:00
committed by GitHub
parent 27bf63ad20
commit 02657e85a4
7 changed files with 536 additions and 514 deletions

View File

@@ -18,9 +18,7 @@ import (
sender_service "code.gitea.io/gitea/services/mailer/sender"
)
const (
tplTeamInviteMail templates.TplName = "team_invite"
)
const tplTeamInviteMail templates.TplName = "team_invite"
// MailTeamInvite sends team invites
func MailTeamInvite(ctx context.Context, inviter *user_model.User, team *org_model.Team, invite *org_model.TeamInvite) error {