lib/classes/Swift/Transport/EsmtpTransport.php
public function setTimeout($timeout)
    {
        $this->params['timeout'] = (int) $timeout;
        $this->buffer->setParam('timeout', (int) $timeout);

        return $this;
    }
public function setTimeout($timeout)
    {
        $this->params['timeout'] = (int) $timeout;
        $this->buffer->setParam('timeout', (int) $timeout);

        return $this;
    }
public function setTimeout ( $ timeout ) { $ this -> params [ 'timeout' ] = ( int ) $ timeout ; $ this -> buffer -> setParam ( 'timeout' , ( int ) $ timeout ) ; return $ this ; }
Set the connection timeout.

@param int $timeout seconds

@return $this
Set the connection timeout .