BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Adjust the subscription email location to core/template
lotkb830135bef5a
diff --git a/core/internal/controller/subscribe_list/subscribe_list.go b/core/internal/controller/subscribe_list/subscribe_list.goindex 3dc95a5b..064d3f9d 100644--- a/core/internal/controller/subscribe_list/subscribe_list.go+++ b/core/internal/controller/subscribe_list/subscribe_list.go@@ -104,8 +104,8 @@ func readTemplateFiles(baseFilename string) (htmlContent string, txtContent strihostwork := public.HostWorkDir// Construct two file paths (automatically handle OS-specific separators)- htmlPath := filepath.Join(hostwork, "core", "data", baseFilename+".html")- txtPath := filepath.Join(hostwork, "core", "data", baseFilename+".txt")+ htmlPath := filepath.Join(hostwork, "core", "template", baseFilename+".html")+ txtPath := filepath.Join(hostwork, "core", "template", baseFilename+".txt")// Security check (prevent directory traversal)cleanDir := filepath.Clean(filepath.Join(hostwork, "core", "data"))diff --git a/core/data/default_confirm_email/confirm_email.html b/core/template/default_confirm_email/confirm_email.htmlsimilarity index 100%rename from core/data/default_confirm_email/confirm_email.htmlrename to core/template/default_confirm_email/confirm_email.htmldiff --git a/core/data/default_confirm_email/confirm_email.txt b/core/template/default_confirm_email/confirm_email.txtsimilarity index 100%rename from core/data/default_confirm_email/confirm_email.txtrename to core/template/default_confirm_email/confirm_email.txtdiff --git a/core/data/default_welcome_email/welcome_email.html b/core/template/default_welcome_email/welcome_email.htmlsimilarity index 100%rename from core/data/default_welcome_email/welcome_email.htmlrename to core/template/default_welcome_email/welcome_email.htmldiff --git a/core/data/default_welcome_email/welcome_email.txt b/core/template/default_welcome_email/welcome_email.txtsimilarity index 100%rename from core/data/default_welcome_email/welcome_email.txtrename to core/template/default_welcome_email/welcome_email.txt