Skip to content

Commit 157ca16

Browse files
committed
NullTransport should report that all emails have been delivered.
1 parent 672f36a commit 157ca16

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/classes/Swift/Transport/NullTransport.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
7373
$this->_eventDispatcher->dispatchEvent($evt, 'sendPerformed');
7474
}
7575

76-
return 0;
76+
$count = (
77+
count((array) $message->getTo())
78+
+ count((array) $message->getCc())
79+
+ count((array) $message->getBcc())
80+
);
81+
82+
return $count;
7783
}
7884

7985
/**

0 commit comments

Comments
 (0)