protected function registerSwiftTransport()
    {
        switch ($driver = $this->getConfig('driver')) {
            case 'smtp':
                $this->transport = $this->registerTransportSmtp();
                break;

            case 'mail':
                $this->transport = $this->registerTransportMail();
                break;

            case 'sendmail':
                $this->transport = $this->registerTransportSendmail();
                break;

            default:
                throw new \InvalidArgumentException(sprintf('Driver-mail "%s" is not supported', $driver));
        }
    }
protected function registerSwiftTransport()
    {
        switch ($driver = $this->getConfig('driver')) {
            case 'smtp':
                $this->transport = $this->registerTransportSmtp();
                break;

            case 'mail':
                $this->transport = $this->registerTransportMail();
                break;

            case 'sendmail':
                $this->transport = $this->registerTransportSendmail();
                break;

            default:
                throw new \InvalidArgumentException(sprintf('Driver-mail "%s" is not supported', $driver));
        }
    }
protected function registerSwiftTransport ( ) { switch ( $ driver = $ this -> getConfig ( 'driver' ) ) { case 'smtp' : $ this -> transport = $ this -> registerTransportSmtp ( ) ; break ; case 'mail' : $ this -> transport = $ this -> registerTransportMail ( ) ; break ; case 'sendmail' : $ this -> transport = $ this -> registerTransportSendmail ( ) ; break ; default : throw new \ InvalidArgumentException ( sprintf ( 'Driver-mail "%s" is not supported' , $ driver ) ) ; } }
Create a new Driver-mail of SwiftTransport instance.

Supported driver-mail:
- smtp
- sendmail
- mail
Create a new Driver - mail of SwiftTransport instance .