diff --git a/api.go b/api.go index 2a0b9eb..4656522 100644 --- a/api.go +++ b/api.go @@ -1712,6 +1712,9 @@ func (app *appContext) GetCustomEmailTemplate(gc *gin.Context) { } writeVars = func(variables []string) { app.storage.customEmails.UserExpired.Variables = variables } values = app.email.userExpiredValues(app, false) + // Just send the email html + case "Announcement": + content = "" default: respondBool(400, false, gc) return @@ -1747,7 +1750,7 @@ func (app *appContext) GetCustomEmailTemplate(gc *gin.Context) { respondBool(500, false, gc) return } - email, err := app.email.constructTemplate("", "
", app) + email, err := app.email.constructTemplate("", "
", app) if err != nil { respondBool(500, false, gc) return diff --git a/html/admin.html b/html/admin.html index a1b7295..fb5912d 100644 --- a/html/admin.html +++ b/html/admin.html @@ -156,18 +156,24 @@