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

		if ( !$transport->isStarted() )
		{
			// Not running - no reason for stopping it
			return;
		}

		try
		{
			// Send STOP to stop the SMTP connection
			$transport->stop();
		}
		catch (Exception $e)
		{
			// In case of failure - reset object value
			$reflection = new \ReflectionClass( $transport );
			$prop = $reflection->getProperty( '_started' );
			$prop->setAccessible( true );
			$prop->setValue( $transport, false );
			$prop->setAccessible( false );
		}
	}
protected function stopSwiftTransport()
	{
		if ( !$transport = $this->queryTransport() )
		{
			return;
		}

		if ( !$transport->isStarted() )
		{
			// Not running - no reason for stopping it
			return;
		}

		try
		{
			// Send STOP to stop the SMTP connection
			$transport->stop();
		}
		catch (Exception $e)
		{
			// In case of failure - reset object value
			$reflection = new \ReflectionClass( $transport );
			$prop = $reflection->getProperty( '_started' );
			$prop->setAccessible( true );
			$prop->setValue( $transport, false );
			$prop->setAccessible( false );
		}
	}
protected function stopSwiftTransport ( ) { if ( ! $ transport = $ this -> queryTransport ( ) ) { return ; } if ( ! $ transport -> isStarted ( ) ) { // Not running - no reason for stopping it return ; } try { // Send STOP to stop the SMTP connection $ transport -> stop ( ) ; } catch ( Exception $ e ) { // In case of failure - reset object value $ reflection = new \ ReflectionClass ( $ transport ) ; $ prop = $ reflection -> getProperty ( '_started' ) ; $ prop -> setAccessible ( true ) ; $ prop -> setValue ( $ transport , false ) ; $ prop -> setAccessible ( false ) ; } }
Stop Swift Mailer SMTP transport adapter

@return void
Stop Swift Mailer SMTP transport adapter