diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-25 00:35:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 00:35:35 +0800 |
commit | 52ffb67b33c1823933948c027b6f3605fb42ea7c (patch) | |
tree | c93ee7eb2bb1f8417d350f703afc53cf4dd872f8 /internal/route/repo/setting.go | |
parent | 0d6c405ccbde9d20889893168f9f9599118e3f5c (diff) |
conf: overhaul email settings (#5940)
Diffstat (limited to 'internal/route/repo/setting.go')
-rw-r--r-- | internal/route/repo/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/repo/setting.go b/internal/route/repo/setting.go index d3cc46bc..e1049cca 100644 --- a/internal/route/repo/setting.go +++ b/internal/route/repo/setting.go @@ -19,7 +19,7 @@ import ( "gogs.io/gogs/internal/db" "gogs.io/gogs/internal/db/errors" "gogs.io/gogs/internal/form" - "gogs.io/gogs/internal/mailer" + "gogs.io/gogs/internal/email" "gogs.io/gogs/internal/tool" ) @@ -399,7 +399,7 @@ func SettingsCollaborationPost(c *context.Context) { } if conf.Service.EnableNotifyMail { - mailer.SendCollaboratorMail(db.NewMailerUser(u), db.NewMailerUser(c.User), db.NewMailerRepo(c.Repo.Repository)) + email.SendCollaboratorMail(db.NewMailerUser(u), db.NewMailerUser(c.User), db.NewMailerRepo(c.Repo.Repository)) } c.Flash.Success(c.Tr("repo.settings.add_collaborator_success")) |