feat(mail): add site URL handling and notification headers

* include site URL in Mailer for absolute URLs
* add header method for email notifications
This commit is contained in:
2026-08-23 11:53:07 +02:00
parent f96465b798
commit 143b2361f6
4 changed files with 72 additions and 38 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func main() {
}
defer st.Close()
mailer := mail.New(cfg.Email)
mailer := mail.New(cfg.Email, cfg.Site.URL)
wh := webhook.New(cfg.Webhook)
if cfg.Origin.ServiceKey == "" {
log.Printf("origin registration disabled: origin.service_key is not configured")