src/Mailer.php
private function getSmtpTransport(): \Swift_SmtpTransport
    {
        $object = new \Swift_SmtpTransport(
            $this->config('smtp.host'),
            $this->config('smtp.port'),
            $this->config('smtp.encryption')
        );

        return $object
            ->setUsername($this->config('smtp.username'))
            ->setPassword($this->config('smtp.password'))
        ;
    }
private function getSmtpTransport(): \Swift_SmtpTransport
    {
        $object = new \Swift_SmtpTransport(
            $this->config('smtp.host'),
            $this->config('smtp.port'),
            $this->config('smtp.encryption')
        );

        return $object
            ->setUsername($this->config('smtp.username'))
            ->setPassword($this->config('smtp.password'))
        ;
    }
private function getSmtpTransport ( ) : \ Swift_SmtpTransport { $ object = new \ Swift_SmtpTransport ( $ this -> config ( 'smtp.host' ) , $ this -> config ( 'smtp.port' ) , $ this -> config ( 'smtp.encryption' ) ) ; return $ object -> setUsername ( $ this -> config ( 'smtp.username' ) ) -> setPassword ( $ this -> config ( 'smtp.password' ) ) ; }
Get the SMTP transport.
Get the SMTP transport .