lib/classes/Swift/Transport/AbstractSmtpTransport.php
public function start()
    {
        if (!$this->started) {
            if ($evt = $this->eventDispatcher->createTransportChangeEvent($this)) {
                $this->eventDispatcher->dispatchEvent($evt, 'beforeTransportStarted');
                if ($evt->bubbleCancelled()) {
                    return;
                }
            }

            try {
                $this->buffer->initialize($this->getBufferParams());
            } catch (Swift_TransportException $e) {
                $this->throwException($e);
            }
            $this->readGreeting();
            $this->doHeloCommand();

            if ($evt) {
                $this->eventDispatcher->dispatchEvent($evt, 'transportStarted');
            }

            $this->started = true;
        }
    }
public function start()
    {
        if (!$this->started) {
            if ($evt = $this->eventDispatcher->createTransportChangeEvent($this)) {
                $this->eventDispatcher->dispatchEvent($evt, 'beforeTransportStarted');
                if ($evt->bubbleCancelled()) {
                    return;
                }
            }

            try {
                $this->buffer->initialize($this->getBufferParams());
            } catch (Swift_TransportException $e) {
                $this->throwException($e);
            }
            $this->readGreeting();
            $this->doHeloCommand();

            if ($evt) {
                $this->eventDispatcher->dispatchEvent($evt, 'transportStarted');
            }

            $this->started = true;
        }
    }
public function start ( ) { if ( ! $ this -> started ) { if ( $ evt = $ this -> eventDispatcher -> createTransportChangeEvent ( $ this ) ) { $ this -> eventDispatcher -> dispatchEvent ( $ evt , 'beforeTransportStarted' ) ; if ( $ evt -> bubbleCancelled ( ) ) { return ; } } try { $ this -> buffer -> initialize ( $ this -> getBufferParams ( ) ) ; } catch ( Swift_TransportException $ e ) { $ this -> throwException ( $ e ) ; } $ this -> readGreeting ( ) ; $ this -> doHeloCommand ( ) ; if ( $ evt ) { $ this -> eventDispatcher -> dispatchEvent ( $ evt , 'transportStarted' ) ; } $ this -> started = true ; } }
Start the SMTP connection.
Start the SMTP connection .