Skip to content

armgit / posta

Public Imported from GitHub
0

Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.

fix(templates): inject reserved posta_* vars in version preview

Jonas Kaninda5bcf77b9c5ad
diff --git a/internal/handlers/template_localization_handler.go b/internal/handlers/template_localization_handler.go
index beff4a0..c34c0bf 100644
--- a/internal/handlers/template_localization_handler.go
+++ b/internal/handlers/template_localization_handler.go
@@ -218,6 +218,7 @@ func (h *TemplateLocalizationHandler) Preview(c *okapi.Context, req *PreviewLoca
if data == nil {
data = map[string]any{}
}
+ data = email.WithSystemVarNames(data)
// Build render input from the localization
var css string