Crunz\Mailer::getSmtpTransport PHP Method

getSmtpTransport() protected method

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