diff --git a/Model/FilePayload.php b/Model/FilePayload.php index e4fef016..5abf4bd9 100644 --- a/Model/FilePayload.php +++ b/Model/FilePayload.php @@ -1482,7 +1482,12 @@ private function operationEmail($operation) // $mailer->setCc($cc); // $mailer->setBcc($bcc); - return $mailer->send(false, false); + $mailResult = $mailer->send(false, false); + if ($errors = $mailer->getErrors()) { + $this->setLogs($errors, 'sendError'); + } + + return $mailResult; } /**