From ff358945f2b210f7f374d3e3e7e36170ee16aed5 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 3 Nov 2020 06:16:17 +0100 Subject: KB68 Newsletter registration and deregistration. Change-Id: Ic79fe64f03ce887879bffc7623e59cb697065ee6 --- .../NewsletterResource/completeRegistration.html | 24 ++++++++++++++++ .../templates/NewsletterResource/index.html | 32 ++++++++++++++++++++++ .../templates/NewsletterResource/registered.html | 26 ++++++++++++++++++ .../NewsletterResource/registrationMail.txt | 12 ++++++++ .../NewsletterUnsubscriber/unsubscribedMail.txt | 7 +++++ src/main/resources/templates/tags/navbar.html | 2 ++ 6 files changed, 103 insertions(+) create mode 100644 src/main/resources/templates/NewsletterResource/completeRegistration.html create mode 100644 src/main/resources/templates/NewsletterResource/index.html create mode 100644 src/main/resources/templates/NewsletterResource/registered.html create mode 100644 src/main/resources/templates/NewsletterResource/registrationMail.txt create mode 100644 src/main/resources/templates/NewsletterUnsubscriber/unsubscribedMail.txt (limited to 'src/main/resources/templates') diff --git a/src/main/resources/templates/NewsletterResource/completeRegistration.html b/src/main/resources/templates/NewsletterResource/completeRegistration.html new file mode 100644 index 0000000..0cdb874 --- /dev/null +++ b/src/main/resources/templates/NewsletterResource/completeRegistration.html @@ -0,0 +1,24 @@ +{#include base.html} + +{#title}Newsletter Registration — Benki{/title} +{#siteSection}Newsletter{/siteSection} +{#wikiClass}this-page{/wikiClass} + +{#nav}{#navbar siteSection="Newsletter" /} + +{#head}{/head} + +{#body} +
+
+

Newsletter Registration

+
+ +
+

In order to complete your registration, please check your email inbox and click + the link in the confirmation mail.

+
+
+{/body} + +{/include} diff --git a/src/main/resources/templates/NewsletterResource/index.html b/src/main/resources/templates/NewsletterResource/index.html new file mode 100644 index 0000000..84098bd --- /dev/null +++ b/src/main/resources/templates/NewsletterResource/index.html @@ -0,0 +1,32 @@ +{#include base.html} + +{#title}Newsletter — Benki{/title} +{#siteSection}Newsletter{/siteSection} +{#wikiClass}this-page{/wikiClass} + +{#nav}{#navbar siteSection="Newsletter" /} + +{#head}{/head} + +{#body} +
+
+

Newsletter

+
+ +
+

To get a weekly digest of all posted articles and bookmarks into your email inbox, + enter your email address and submit the form below.

+ +

Your registration is subject to the privacy policy.

+ +
+ + + +
+
+
+{/body} + +{/include} diff --git a/src/main/resources/templates/NewsletterResource/registered.html b/src/main/resources/templates/NewsletterResource/registered.html new file mode 100644 index 0000000..e82618e --- /dev/null +++ b/src/main/resources/templates/NewsletterResource/registered.html @@ -0,0 +1,26 @@ +{#include base.html} + +{#title}Newsletter Registration — Benki{/title} +{#siteSection}Newsletter{/siteSection} +{#wikiClass}this-page{/wikiClass} + +{#nav}{#navbar siteSection="Newsletter" /} + +{#head}{/head} + +{#body} +
+
+

Newsletter Registration

+
+ +
+

Thank you. You are now subscribed to the weekly email digest.

+ +

To unsubscribe, send an email to + mulkcms+unsubscribe@benkard.de.

+
+
+{/body} + +{/include} diff --git a/src/main/resources/templates/NewsletterResource/registrationMail.txt b/src/main/resources/templates/NewsletterResource/registrationMail.txt new file mode 100644 index 0000000..c86b385 --- /dev/null +++ b/src/main/resources/templates/NewsletterResource/registrationMail.txt @@ -0,0 +1,12 @@ +{@java.lang.String registrationKey} +Hello! + +Someone (you, one would hope) entered your email address to subscribe to the MulkCMS +benkard.de newsletter. In order to complete your registration, open the following +link in your web browser: + + https://matthias.benkard.de/newsletter/finish-registration?key={registrationKey} + +If someone is playing a trick on you and you would not actually like to subscribe to +the newsletter, you may ignore this email. In this case, your registration record +will be deleted within a week. \ No newline at end of file diff --git a/src/main/resources/templates/NewsletterUnsubscriber/unsubscribedMail.txt b/src/main/resources/templates/NewsletterUnsubscriber/unsubscribedMail.txt new file mode 100644 index 0000000..56f8d0e --- /dev/null +++ b/src/main/resources/templates/NewsletterUnsubscriber/unsubscribedMail.txt @@ -0,0 +1,7 @@ +You have been unsubscribed from the MulkCMS newsletter because we +received an unsubscription request from your email address. + +To register for the newsletter again, open the following page in +your web browser: + + https://matthias.benkard.de/newsletter diff --git a/src/main/resources/templates/tags/navbar.html b/src/main/resources/templates/tags/navbar.html index 63f88f1..d79a952 100644 --- a/src/main/resources/templates/tags/navbar.html +++ b/src/main/resources/templates/tags/navbar.html @@ -9,6 +9,8 @@
  • Wiki
  • {/if} +
  • Newsletter
  • +
  • Contact Info
  • Privacy Policy
  • -- cgit v1.2.3