use website title in mail templates (#448) (#466)

* use website title in mail templates (#448)

* change button font color to white (#448)
This commit is contained in:
h44z
2025-06-27 11:45:44 +02:00
committed by GitHub
parent 3a732fd3e5
commit 94785c10ec
6 changed files with 16 additions and 12 deletions

View File

@@ -71,7 +71,7 @@ func NewMailManager(
users UserDatabaseRepo,
wg WireguardDatabaseRepo,
) (*Manager, error) {
tplHandler, err := newTemplateHandler(cfg.Web.ExternalUrl)
tplHandler, err := newTemplateHandler(cfg.Web.ExternalUrl, cfg.Web.SiteTitle)
if err != nil {
return nil, fmt.Errorf("failed to initialize template handler: %w", err)
}