How to set gmail configration for mail in Laravel?

How to set gmail configration for mail in Laravel?

In this post we will give you information about How to set gmail configration for mail in Laravel?. Hear we will give you detail about How to set gmail configration for mail in Laravel?And how to use it also give you demo for it if it is necessary.

If you are working with laravel and you need to setup gmail configration for send email. if you want to set configration of gmail then first go to mail.php file, you are work on laravel 4 and laravel 5 its not issue, because you can set comman setting for both version of laravel framwork.

Mail.php

Also see:How to send mail using mailable in laravel 5.3?

'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

Try this…….

Hope this code and post will helped you for implement How to set gmail configration for mail in Laravel?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

1  +  6  =  

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US