(c *context.Context)
| 171 | } |
| 172 | |
| 173 | func SendTestMail(c *context.Context) { |
| 174 | emailAddr := c.Query("email") |
| 175 | // Send a test email to the user's email address and redirect back to Config |
| 176 | if err := email.SendTestMail(emailAddr); err != nil { |
| 177 | c.Flash.Error(c.Tr("admin.config.email.test_mail_failed", emailAddr, err)) |
| 178 | } else { |
| 179 | c.Flash.Info(c.Tr("admin.config.email.test_mail_sent", emailAddr)) |
| 180 | } |
| 181 | |
| 182 | c.Redirect(conf.Server.Subpath + "/admin/config") |
| 183 | } |
| 184 | |
| 185 | func Config(c *context.Context) { |
| 186 | c.Title("admin.config") |
nothing calls this directly
no test coverage detected