I'm trying to send email using Laravel. I configured mail.php
with details of gmail server and used my personal gmail account credentials. It worked fine.
Then i tried to configure mail.php
with the Secure SSl/TLS
settings that my mail provider has provided me.
I changed host, port, username and password
. I also changed encryption
to ssl
.
But i'm not able to send email. After some loading time, it just shows a blank page. No Error.
here's my config file(have removed doc-blocks):
<?php
return array(
'driver' => 'smtp',
'host' => 'myServerHostAddress',
'port' => portno,
'from' => array('address' => 'registration@gambiadept.com', 'name' => 'Gambia Dept'),
'encryption' => 'ssl',
'username' => 'usernameFromMyServiceProvider',
'password' => 'myPassword',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);