Add soft level errors distinction for SMTP method

[MAILPOET-1154]
This commit is contained in:
Rostislav Wolny
2018-09-11 14:05:31 +02:00
parent 6437f4a1b3
commit 45433c9deb
3 changed files with 28 additions and 4 deletions

View File

@ -49,7 +49,7 @@ class SMTP {
$result = $this->mailer->send($message);
} catch(\Exception $e) {
return Mailer::formatMailerErrorResult(
$this->error_mapper->getErrorFromException($e)
$this->error_mapper->getErrorFromException($e, $subscriber, $extra_params)
);
}
if($result === 1) {