Surfe.be - 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

Mail.php

setup gmail configuration
    'driver' => smtp,
    'host' => smtp.gmail.com,
    'port' => 587,
    'from' => ['address' => 'test@gmail.com', 'name' => 'Test'],
    'encryption' => tls,
    'username' => test@gmail.com,
    '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 : https://www.google.com/settings/security/lesssecureapps  . 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

LET'S SOCIALITE

Recent Tweets

RECOMMENDED POST