Classes/Transport/LoggingTransport.php
public function send(\Swift_Mime_SimpleMessage $message, &$failedRecipients = null): int
    {
        self::$deliveredMessages[] = $message;

        $this->systemLogger->log('Sent email to ' . $this->buildStringFromEmailAndNameArray($message->getTo()), LOG_DEBUG, [
            'message' => $message->toString()
        ]);

        return count((array)$message->getTo()) + count((array)$message->getCc()) + count((array)$message->getBcc());
    }
public function send(\Swift_Mime_SimpleMessage $message, &$failedRecipients = null): int
    {
        self::$deliveredMessages[] = $message;

        $this->systemLogger->log('Sent email to ' . $this->buildStringFromEmailAndNameArray($message->getTo()), LOG_DEBUG, [
            'message' => $message->toString()
        ]);

        return count((array)$message->getTo()) + count((array)$message->getCc()) + count((array)$message->getBcc());
    }
public function send ( \ Swift_Mime_SimpleMessage $ message , & $ failedRecipients = null ) : int { self :: $ deliveredMessages [ ] = $ message ; $ this -> systemLogger -> log ( 'Sent email to ' . $ this -> buildStringFromEmailAndNameArray ( $ message -> getTo ( ) ) , LOG_DEBUG , [ 'message' => $ message -> toString ( ) ] ) ; return count ( ( array ) $ message -> getTo ( ) ) + count ( ( array ) $ message -> getCc ( ) ) + count ( ( array ) $ message -> getBcc ( ) ) ; }
"Send" the given Message. This transport will add it to a stored collection of sent messages
for testing purposes and log the message to the system logger.

@param \Swift_Mime_SimpleMessage $message The message to send
@param array &$failedRecipients Failed recipients
@return int
Send the given Message . This transport will add it to a stored collection of sent messages for testing purposes and log the message to the system logger .