High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix `test campaign' sending wrong template for visual campaigns.
Kailash Nadhd3da0be6294c
diff --git a/models/models.go b/models/models.goindex ede9656c..59f53829 100644--- a/models/models.go+++ b/models/models.go@@ -536,7 +536,7 @@ func (c *Campaign) CompileTemplate(f template.FuncMap) error {// Compile the base template.body := c.TemplateBody- if body == "" {+ if body == "" || c.ContentType == CampaignContentTypeVisual {body = `{{ template "content" . }}`}