Skip to content

Commit 0997a63

Browse files
committed
Fix send mail
1 parent dbebc6b commit 0997a63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/mailer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ import (
99
"net/http"
1010

1111
"code.gitea.io/gitea/modules/private"
12+
"code.gitea.io/gitea/modules/setting"
1213
"github.com/urfave/cli"
1314
)
1415

1516
func runSendMail(c *cli.Context) error {
17+
setting.NewContext()
18+
1619
if err := argsSet(c, "title"); err != nil {
1720
return err
1821
}

0 commit comments

Comments
 (0)