High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Improve HTML check in notif template loading. Closes #903.
Kailash Nadhedb4c9168de4
diff --git a/cmd/init.go b/cmd/init.goindex 831812f9..d00f026a 100644--- a/cmd/init.go+++ b/cmd/init.go@@ -615,7 +615,7 @@ func initNotifTemplates(path string, fs stuffbin.FileSystem, i *i18n.I18n, cs *ch := make([]byte, ln)copy(h, html[0:ln])- if !bytes.Contains(bytes.ToLower(h), []byte("<!doctype html>")) {+ if !bytes.Contains(bytes.ToLower(h), []byte("<!doctype html")) {out.contentType = models.CampaignContentTypePlainlo.Println("system e-mail templates are plaintext")}