Improve MSS sending error message

[MAILPOET-2115]
This commit is contained in:
Jan Jakeš
2019-06-18 15:37:21 +02:00
committed by M. Shull
parent 95b5721038
commit a92a3de26d

View File

@ -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<br><br>$subscriber_limit_message<br>$deliverability_message<br>";
}
}