From 54bc5513c148ef5abc8dfa0bf6819bd0e7c6cfd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Wed, 10 Apr 2019 15:23:03 +0200 Subject: [PATCH] Add new settings to set inactive subscriber period [MAILPOET-1970] --- lib/Settings/SettingsController.php | 2 ++ views/settings/advanced.html | 55 ++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/lib/Settings/SettingsController.php b/lib/Settings/SettingsController.php index 4ed4701b47..2db416747d 100644 --- a/lib/Settings/SettingsController.php +++ b/lib/Settings/SettingsController.php @@ -12,6 +12,7 @@ class SettingsController { const DEFAULT_SENDING_METHOD = 'PHPMail'; const DEFAULT_SENDING_FREQUENCY_EMAILS = 25; const DEFAULT_SENDING_FREQUENCY_INTERVAL = 5; // in minutes + const DEFAULT_INACTIVE_SUBSCRIBER_DAYS = 180; private static $loaded = false; @@ -65,6 +66,7 @@ class SettingsController { 'enabled' => false, ], 'display_nps_poll' => true, + 'inactive_subscriber_days' => self::DEFAULT_INACTIVE_SUBSCRIBER_DAYS, ]; } return $this->defaults; diff --git a/views/settings/advanced.html b/views/settings/advanced.html index 360ccb5945..c9bfd9ab92 100644 --- a/views/settings/advanced.html +++ b/views/settings/advanced.html @@ -9,7 +9,7 @@

<%= __('Your bounced emails will be sent to this address.') %> <%= _x('Read more.', 'support article link label') %>

@@ -159,6 +159,59 @@

+ + + + +

+ <%= __("Gmail, Yahoo and other email providers will treat your emails like spam if your subscribers don't open your emails in the long run. This option will mark your subscribers as Inactive and MailPoet will stop sending to them.") %> +

+ + +

+ +

+

+ +

+

+ +

+

+ +

+ +