Skip to content

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.go
index 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 stri
hostwork := 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.html
similarity index 100%
rename from core/data/default_confirm_email/confirm_email.html
rename to core/template/default_confirm_email/confirm_email.html
diff --git a/core/data/default_confirm_email/confirm_email.txt b/core/template/default_confirm_email/confirm_email.txt
similarity index 100%
rename from core/data/default_confirm_email/confirm_email.txt
rename to core/template/default_confirm_email/confirm_email.txt
diff --git a/core/data/default_welcome_email/welcome_email.html b/core/template/default_welcome_email/welcome_email.html
similarity index 100%
rename from core/data/default_welcome_email/welcome_email.html
rename to core/template/default_welcome_email/welcome_email.html
diff --git a/core/data/default_welcome_email/welcome_email.txt b/core/template/default_welcome_email/welcome_email.txt
similarity index 100%
rename from core/data/default_welcome_email/welcome_email.txt
rename to core/template/default_welcome_email/welcome_email.txt