diff --git a/README.md b/README.md index a184b5b..35a3a8e 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,6 @@ Alternatively, to run a demo of listmonk, you can quickly spin up a container `d - DB migrations - Bounce tracking - User auth, management, permissions -- Privacy features for subscribers (Download and wipe all tracking data) - Ability to write raw campaign logs to a target - Analytics views and reports - Make Ant design UI components responsive diff --git a/campaigns.go b/campaigns.go index ee9af4d..b6e1b47 100644 --- a/campaigns.go +++ b/campaigns.go @@ -509,7 +509,7 @@ func sendTestMessage(sub *models.Subscriber, camp *models.Campaign, app *App) er fmt.Sprintf("Error rendering message: %v", err)) } - if err := app.Messenger.Push(camp.FromEmail, []string{sub.Email}, camp.Subject, m.Body); err != nil { + if err := app.Messenger.Push(camp.FromEmail, []string{sub.Email}, camp.Subject, m.Body, nil); err != nil { return err } diff --git a/config.toml.sample b/config.toml.sample index 8ac6561..f58b0b9 100644 --- a/config.toml.sample +++ b/config.toml.sample @@ -44,6 +44,29 @@ concurrency = 100 max_send_errors = 1000 +[privacy] +# Allow subscribers to unsubscribe from all mailing lists and mark themselves +# as blacklisted? +allow_blacklist = false + +# Allow subscribers to export data recorded on them? +allow_export = false + +# Items to include in the data export. +# profile Subscriber's profile including custom attributes +# subscriptions Subscriber's subscription lists (private list names are masked) +# campaign_views Campaigns the subscriber has viewed and the view counts +# link_clicks Links that the subscriber has clicked and the click counts +exportable = ["profile", "subscriptions", "campaign_views", "link_clicks"] + +# Allow subscribers to delete themselves from the database? +# This deletes the subscriber and all their subscriptions. +# Their association to campaign views and link clicks are also +# removed while views and click counts remain (with no subscriber +# associated to them) so that stats and analytics aren't affected. +allow_wipe = false + + # Database. [db] host = "demo-db" @@ -53,8 +76,6 @@ password = "listmonk" database = "listmonk" ssl_mode = "disable" -# TQekh4quVgGc3HQ - # SMTP servers. [smtp] diff --git a/email-templates/default.tpl b/email-templates/default.tpl index 3fd7a36..f76dc97 100644 --- a/email-templates/default.tpl +++ b/email-templates/default.tpl @@ -1,8 +1,8 @@ - - + + - -
 
-
+ +
 
+
{{ template "content" . }}
-