From a92a3de26d81569d0551166f5b799a8a2529cef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Jakes=CC=8C?= Date: Tue, 18 Jun 2019 15:37:21 +0200 Subject: [PATCH] Improve MSS sending error message [MAILPOET-2115] --- .../Methods/ErrorMappers/MailPoetMapper.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/Mailer/Methods/ErrorMappers/MailPoetMapper.php b/lib/Mailer/Methods/ErrorMappers/MailPoetMapper.php index 527366cc0a..74bd8885b5 100644 --- a/lib/Mailer/Methods/ErrorMappers/MailPoetMapper.php +++ b/lib/Mailer/Methods/ErrorMappers/MailPoetMapper.php @@ -109,13 +109,26 @@ class MailPoetMapper { } private function getAccountBannedMessage() { - return Helpers::replaceLinkTags( - WPFunctions::get()->__('You currently are not permitted to send any emails with MailPoet Sending Service, which may have happened due to poor deliverability. Please [link]contact our support team[/link] to resolve the issue.', 'mailpoet'), + $message = WPFunctions::get()->__('The MailPoet Sending Service has stopped sending your emails for one of the following reasons:', 'mailpoet'); + + $subscriber_limit_message = Helpers::replaceLinkTags( + WPFunctions::get()->__('You may have reached the subscriber limit of your plan. [link]Manage your subscriptions[/link].', 'mailpoet'), + 'https://account.mailpoet.com/account', + [ + 'target' => '_blank', + 'rel' => 'noopener noreferrer', + ] + ); + + $deliverability_message = Helpers::replaceLinkTags( + WPFunctions::get()->__('You may have had a poor deliverability rate. Please [link]contact our support team[/link] to resolve the issue.', 'mailpoet'), 'https://www.mailpoet.com/support/', [ 'target' => '_blank', 'rel' => 'noopener noreferrer', ] ); + + return "$message

$subscriber_limit_message
$deliverability_message
"; } }