protected function resetSwiftTransport()
	{
		if ( !$transport = $this->queryTransport() )
		{
			return;
		}

		if ( !$transport->isStarted() )
		{
			$transport->start();

			return;
		}

		try
		{
			// Send RESET to restart the SMTP status and check if it's ready for running
			$transport->reset();
		}
		catch (Exception $e)
		{
			// In case of failure - let's try to stop it
			$this->stopSwiftTransport();

			$transport->start();
		}
	}
protected function resetSwiftTransport()
	{
		if ( !$transport = $this->queryTransport() )
		{
			return;
		}

		if ( !$transport->isStarted() )
		{
			$transport->start();

			return;
		}

		try
		{
			// Send RESET to restart the SMTP status and check if it's ready for running
			$transport->reset();
		}
		catch (Exception $e)
		{
			// In case of failure - let's try to stop it
			$this->stopSwiftTransport();

			$transport->start();
		}
	}
protected function resetSwiftTransport ( ) { if ( ! $ transport = $ this -> queryTransport ( ) ) { return ; } if ( ! $ transport -> isStarted ( ) ) { $ transport -> start ( ) ; return ; } try { // Send RESET to restart the SMTP status and check if it's ready for running $ transport -> reset ( ) ; } catch ( Exception $ e ) { // In case of failure - let's try to stop it $ this -> stopSwiftTransport ( ) ; $ transport -> start ( ) ; } }
Reset Swift Mailer SMTP transport adapter

@return void
Reset Swift Mailer SMTP transport adapter