forked from knadh/listmonk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Lists can now be marked as single | double optin. - Insert subscribers to double opt-in lists send out a confirmation e-mail to the subscriber with a confirmation link. - Add `{{ OptinURL }}` to template functions. This is a breaking change. Adds a new field 'optin' to the lists table and changes how campaigns behave. Campaigns on double opt-in lists exclude subscribers who haven't explicitly confirmed subscriptions. Changes the structure and behaviour of how notification e-mail routines, including notif email template compilation, notification callbacks for campaign and bulk import completions.
- Loading branch information
Showing
18 changed files
with
426 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{{ define "subscriber-optin" }} | ||
{{ template "header" . }} | ||
<h2>Confirm subscription</h2> | ||
<p>Hi {{ .Subscriber.FirstName }},</p> | ||
<p>You have been added to the following mailing lists:</p> | ||
<ul> | ||
{{ range $i, $l := .Lists }} | ||
{{ if eq .Type "public" }} | ||
<li>{{ .Name }}</li> | ||
{{ else }} | ||
<li>Private list</li> | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
<p>Confirm your subscription by clicking the below button.</p> | ||
<p> | ||
<a href="{{ .OptinURL }}" class="button">Confirm subscription</a> | ||
</p> | ||
|
||
{{ template "footer" }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -446,19 +446,16 @@ class Import extends React.PureComponent { | |
<code className="csv-headers"> | ||
<span>email,</span> | ||
<span>name,</span> | ||
<span>status,</span> | ||
<span>attributes</span> | ||
</code> | ||
<code className="csv-row"> | ||
<span>[email protected],</span> | ||
<span>"User One",</span> | ||
<span>enabled,</span> | ||
<span>{'"{""age"": 32, ""city"": ""Bangalore""}"'}</span> | ||
</code> | ||
<code className="csv-row"> | ||
<span>[email protected],</span> | ||
<span>"User Two",</span> | ||
<span>blacklisted,</span> | ||
<span> | ||
{'"{""age"": 25, ""occupation"": ""Time Traveller""}"'} | ||
</span> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.