src/Viserio/Component/Mail/Mailer.php
protected function sendSwiftMessage(Swift_Mime_SimpleMessage $message): int
    {
        if (! $this->shouldSendMessage($message)) {
            return 0;
        }

        try {
            return $this->swift->send($message, $this->failedRecipients);
        } finally {
            $this->forceReconnecting();
        }
    }
protected function sendSwiftMessage(Swift_Mime_SimpleMessage $message): int
    {
        if (! $this->shouldSendMessage($message)) {
            return 0;
        }

        try {
            return $this->swift->send($message, $this->failedRecipients);
        } finally {
            $this->forceReconnecting();
        }
    }
Send a Swift Message instance.

@param \Swift_Mime_SimpleMessage $message

@return int