Display a specific error message for banned users

[MAILPOET-3667]
This commit is contained in:
Jan Lysý
2021-09-11 12:15:17 +02:00
committed by Veljko V
parent 2619f9cdda
commit 7f15fce246
4 changed files with 66 additions and 13 deletions

View File

@ -8,10 +8,13 @@ class MailerError {
const OPERATION_CONNECT = 'connect';
const OPERATION_SEND = 'send';
const OPERATION_AUTHORIZATION = 'authorization';
const OPERATION_INSUFFICIENT_PRIVILEGES = 'insufficient_privileges';
const LEVEL_HARD = 'hard';
const LEVEL_SOFT = 'soft';
const MESSAGE_EMAIL_FORBIDDEN_ACTION = 'Key is valid, but the action is forbidden';
const MESSAGE_EMAIL_INSUFFICIENT_PRIVILEGES = 'Insufficient privileges';
const MESSAGE_EMAIL_NOT_AUTHORIZED = 'The email address is not authorized';
/** @var string */