userstyles-world / userstyles.world

⭐ Website to browse and share UserCSS userstyles. A modern replacement for UserStyles.org made by the userstyles community.
https://userstyles.world
GNU Affero General Public License v3.0
322 stars 15 forks source link

Move email templates to files #229

Closed vednoc closed 1 year ago

vednoc commented 1 year ago

Making it easier to work with email templates like in #228, #199, #193, and so on. Do one of the following to test changes without an email server:

    if errText != nil || errHTML != nil {
        return c.Status(fiber.StatusInternalServerError).Render("err", fiber.Map{
            "Title": "Internal server error",
            "Error": "Failed to send email.",
        })
    }

+   return c.Send(bufText.Bytes())
+   return c.Send(bufHTML.Bytes())