Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Improve HTML check in notif template loading. Closes #903.

Kailash Nadhedb4c9168de4
diff --git a/cmd/init.go b/cmd/init.go
index 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 *c
h := 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.CampaignContentTypePlain
lo.Println("system e-mail templates are plaintext")
}