Skip to content

Commit

Permalink
Merge pull request #173 from TheDMSGroup/ENG-683
Browse files Browse the repository at this point in the history
[ENG-683] Add debug log to help solve email with attachment issues on SES
  • Loading branch information
heathdutton authored Dec 19, 2018
2 parents 7d5caf8 + e6a4b42 commit 7be6e10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Model/FilePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 7be6e10

Please sign in to comment.