- passive income

Gmail configuration setup to send mail in Laravel

Gmail configuration setup  to send mail

Many junior laravel developers don’t know what is gmail configuration setup in laravel. If you are working with laravel and you need to setup gmail configuration for sending email in laravel. if you want to set configuration of gmail then first go to mail.php file, you are work on laravel  4 and laravel 5 it’s not issue, because you can set common setting for both version of laravel framework .

Gmail configuration setup  to send mail in laravel


setup gmail configuration
    'driver' => smtp,
    'host' =>,
    'port' => 587,
    'from' => ['address' => '', 'name' => 'Test'],
    'encryption' => tls,
    'username' =>,
    'password' => test123,
    'sendmail' => '/usr/sbin/sendmail -bs',
    'pretend' => false,

this way you can set your gmail account details and try this but if you still find error then you have problem security. you have open this link :  . Then check on Turn On or Read this tutorial where i discussed briefly How to Send Email via SMTP Server . That’s it .

Leave a comments


Recent Tweets