Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
minor #1125 Add finally support (fabpot)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.1-dev branch.

Discussion
----------

Add finally support

Commits
-------

ed73052 added finally support
  • Loading branch information
fabpot committed Sep 11, 2018
2 parents dd8f20b + ed73052 commit e71d15b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/classes/Swift/Transport/AbstractSmtpTransport.php
Expand Up @@ -204,13 +204,10 @@ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = nul
try {
$sent += $this->sendTo($message, $reversePath, $tos, $failedRecipients);
$sent += $this->sendBcc($message, $reversePath, $bcc, $failedRecipients);
} catch (Exception $e) {
} finally {
$message->setBcc($bcc);
throw $e;
}

$message->setBcc($bcc);

if ($evt) {
if ($sent == count($to) + count($cc) + count($bcc)) {
$evt->setResult(Swift_Events_SendEvent::RESULT_SUCCESS);
Expand Down

0 comments on commit e71d15b

Please sign in to comment.