From 30a3dd053fd160a5b29eda36972a05b6397b94eb Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 19 Jun 2022 09:52:49 -0500 Subject: [PATCH] Add mailing address to email footers --- lib/NewsletterSubscriber.php | 4 +- templates/EmailFooter.php | 6 ++ templates/EmailFooterText.php | 5 ++ templates/EmailHeader.php | 78 +++++++++++-------- templates/EmailNewsletterConfirmation.php | 11 ++- templates/EmailNewsletterConfirmationText.php | 12 ++- 6 files changed, 77 insertions(+), 39 deletions(-) create mode 100644 templates/EmailFooterText.php diff --git a/lib/NewsletterSubscriber.php b/lib/NewsletterSubscriber.php index 203a606e..764c11d9 100644 --- a/lib/NewsletterSubscriber.php +++ b/lib/NewsletterSubscriber.php @@ -47,8 +47,8 @@ class NewsletterSubscriber extends PropertiesBase{ $em->PostmarkStream = EMAIL_POSTMARK_STREAM_BROADCAST; $em->To = $this->Email; $em->Subject = 'Action required: confirm your newsletter subscription'; - $em->Body = Template::EmailNewsletterConfirmation(['subscriber' => $this]); - $em->TextBody = Template::EmailNewsletterConfirmationText(['subscriber' => $this]); + $em->Body = Template::EmailNewsletterConfirmation(['subscriber' => $this, 'isSubscribedToSummary' => $this->IsSubscribedToSummary, 'isSubscribedToNewsletter' => $this->IsSubscribedToNewsletter]); + $em->TextBody = Template::EmailNewsletterConfirmationText(['subscriber' => $this, 'isSubscribedToSummary' => $this->IsSubscribedToSummary, 'isSubscribedToNewsletter' => $this->IsSubscribedToNewsletter]); $em->Send(); } diff --git a/templates/EmailFooter.php b/templates/EmailFooter.php index dff5bd2b..47076824 100644 --- a/templates/EmailFooter.php +++ b/templates/EmailFooter.php @@ -7,6 +7,12 @@ The Standard Ebooks logo.

+
+

Standard Ebooks L3C

+

1658 N. Milwaukee Ave. Unit 204

+

Chicago, IL 60647

+
+ diff --git a/templates/EmailFooterText.php b/templates/EmailFooterText.php new file mode 100644 index 00000000..b6da76e2 --- /dev/null +++ b/templates/EmailFooterText.php @@ -0,0 +1,5 @@ +------------------- + +Standard Ebooks L3C +1658 N. Milwaukee Ave. Unit 204 +Chicago, IL 60647 diff --git a/templates/EmailHeader.php b/templates/EmailHeader.php index 0118bbce..d09d2481 100644 --- a/templates/EmailHeader.php +++ b/templates/EmailHeader.php @@ -10,40 +10,45 @@ $preheader = $preheader ?? null; +

‌ 

diff --git a/templates/EmailNewsletterConfirmation.php b/templates/EmailNewsletterConfirmation.php index 33309085..d859586c 100644 --- a/templates/EmailNewsletterConfirmation.php +++ b/templates/EmailNewsletterConfirmation.php @@ -1,9 +1,14 @@

Confirm your newsletter subscription

Thank you for subscribing to the Standard Ebooks newsletter!

-

Please use the button below to confirm your newsletter subscription. You won’t receive our newsletters until you confirm your subscription.

+

You subscribed to:

+ +

Please use the button below to confirm your subscription—you won’t receive email from us until you do.

- Yes, subscribe me to the newsletter + Yes, confirm my subscription

-

If you didn’t subscribe to our newsletter, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us.

+

If you didn’t subscribe, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us.

diff --git a/templates/EmailNewsletterConfirmationText.php b/templates/EmailNewsletterConfirmationText.php index 1aa4c28c..3fa56a82 100644 --- a/templates/EmailNewsletterConfirmationText.php +++ b/templates/EmailNewsletterConfirmationText.php @@ -2,8 +2,16 @@ Thank you for subscribing to the Standard Ebooks newsletter! -Please use the link below to confirm your newsletter subscription. You won’t receive our newsletters until you confirm your subscription. +You subscribed to: + +- The occasional Standard Ebooks newsletter + +- A monthly summary of new ebook releases + +Please use the link below to confirm your subscription—you won’t receive email from us until you do. <Url ?>/confirm> -If you didn’t subscribe to our newsletter, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us. +If you didn’t subscribe, or you’re not sure why you received this email, you can safely delete it and you won’t receive any more email from us. + +