Enable soft sending errors
This commit is contained in:
committed by
M. Shull
parent
c17616cdc7
commit
de36898231
@@ -239,8 +239,6 @@ class SendingQueue {
|
|||||||
if ($send_result['response'] === false) {
|
if ($send_result['response'] === false) {
|
||||||
$error = $send_result['error'];
|
$error = $send_result['error'];
|
||||||
assert($error instanceof MailerError);
|
assert($error instanceof MailerError);
|
||||||
// Always switch error level to hard until we implement UI for individual subscriber errors
|
|
||||||
$error->switchLevelToHard();
|
|
||||||
$this->error_handler->processError($error, $sending_task, $prepared_subscribers_ids, $prepared_subscribers);
|
$this->error_handler->processError($error, $sending_task, $prepared_subscribers_ids, $prepared_subscribers);
|
||||||
}
|
}
|
||||||
// update processed/to process list
|
// update processed/to process list
|
||||||
|
@@ -77,13 +77,6 @@ class MailerError {
|
|||||||
return $this->subscribers_errors;
|
return $this->subscribers_errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Temporary method until we implement UI for subscriber errors
|
|
||||||
*/
|
|
||||||
function switchLevelToHard() {
|
|
||||||
$this->level = self::LEVEL_HARD;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getMessageWithFailedSubscribers() {
|
function getMessageWithFailedSubscribers() {
|
||||||
$message = $this->message ?: '';
|
$message = $this->message ?: '';
|
||||||
if (!$this->subscribers_errors) {
|
if (!$this->subscribers_errors) {
|
||||||
|
Reference in New Issue
Block a user