Rolly Maulana Awangga :: Catatan Ngoprek IT

Pakar dan Awam sama saja, sama sama belajar

Tag Archives: Laravel

Laravel Using Gmail SMTP Account Found Error : “Swift_TransportException Cannot send message without a sender address”

Screen Shot 2015-04-26 at 7.51.49 AM

I use gmail for sending every email from my laravel apps, but seriosly there is an error if i go to forgot password or reminder password function.

The solution is just comment out the check conditional in library of swiftmailer

if (!$reversePath = $this->_getReversePath($message)) {
$this->_throwException(new Swift_TransportException(
‘Cannot send message without a sender address’
)
);
}

and add:

$reversePath = $this->_getReversePath($message);

Screen Shot 2015-04-26 at 7.44.35 AM

Iklan

Installing Laravel Behind Proxy in Debian Wheezy 7 Linux

If the linux box behind the proxy. You must set terminal environment to use proxy. For curl command, you can ad -x arguments, installation of composer behind proxy is like this :

curl -s https://getcomposer.org/installer -x 192.168.1.5:8888 | php -d detect_unicode=off

and then for downloading laravel package, with php cli, first set env var using commang :

export https_proxy=”http://192.168.1.5:8888″

and then laravel composer create project command

php composer.phar create-project laravel/laravel

 

P.S: 192.168.1.5:8888 is proxy gateway

%d blogger menyukai ini: