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:
+1
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user