From c34fbb10b8200b76a3a93094158df5135abe354a Mon Sep 17 00:00:00 2001 From: BretRen Date: Sun, 19 Apr 2026 18:14:33 -0700 Subject: [PATCH 1/2] fix: no SMTP enable var --- .env.example | 1 + config.go | 1 + 2 files changed, 2 insertions(+) diff --git a/.env.example b/.env.example index 11a6a85..2c046c0 100644 --- a/.env.example +++ b/.env.example @@ -29,6 +29,7 @@ SENDER_ADDRESS="noreply@pdnode.com" # Uncomment if you use SMTP #SMTP_HOST="smtp.gmail.com" #SMTP_PORT=587 +#SMTP_ENABLE=true # Optional: "PLAIN" or "LOGIN" #SMTP_AUTH_METHOD="PLAIN" #SMTP_PASSWORD="your-app-password" diff --git a/config.go b/config.go index 331a790..90de359 100644 --- a/config.go +++ b/config.go @@ -72,6 +72,7 @@ func Setup(app core.App) { // SMTP setStringIfPresent("SENDER_NAME", &settings.Meta.SenderName) setStringIfPresent("SENDER_ADDRESS", &settings.Meta.SenderAddress) + setBoolIfPresent("SMTP_ENABLE", &settings.SMTP.Enabled) setStringIfPresent("SMTP_AUTH_METHOD", &settings.SMTP.AuthMethod) setStringIfPresent("SMTP_HOST", &settings.SMTP.Host) setIntIfPresent("SMTP_PORT", &settings.SMTP.Port) From e9f4ce3d08c4aac4c5cde353e526da6bb0366d16 Mon Sep 17 00:00:00 2001 From: BretRen Date: Sun, 19 Apr 2026 18:21:47 -0700 Subject: [PATCH 2/2] Standardized Naming --- .env.example | 2 +- config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 2c046c0..9ccedad 100644 --- a/.env.example +++ b/.env.example @@ -29,7 +29,7 @@ SENDER_ADDRESS="noreply@pdnode.com" # Uncomment if you use SMTP #SMTP_HOST="smtp.gmail.com" #SMTP_PORT=587 -#SMTP_ENABLE=true +#ENABLE_SMTP=true # Optional: "PLAIN" or "LOGIN" #SMTP_AUTH_METHOD="PLAIN" #SMTP_PASSWORD="your-app-password" diff --git a/config.go b/config.go index 90de359..ba8940b 100644 --- a/config.go +++ b/config.go @@ -72,7 +72,7 @@ func Setup(app core.App) { // SMTP setStringIfPresent("SENDER_NAME", &settings.Meta.SenderName) setStringIfPresent("SENDER_ADDRESS", &settings.Meta.SenderAddress) - setBoolIfPresent("SMTP_ENABLE", &settings.SMTP.Enabled) + setBoolIfPresent("ENABLE_SMTP", &settings.SMTP.Enabled) setStringIfPresent("SMTP_AUTH_METHOD", &settings.SMTP.AuthMethod) setStringIfPresent("SMTP_HOST", &settings.SMTP.Host) setIntIfPresent("SMTP_PORT", &settings.SMTP.Port)