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

Add finally support #1125

Merged
merged 1 commit into from Sep 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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