Send email via Gmail SMTP server in Laravel 7/6

Today, We want to share with you Send email via Gmail SMTP server in Laravel 7/6.In this post we will show you Sending beautiful emails with laravel?, hear for How To Send Email From Localhost Using Laravel we will give you demo and example for implement.In this post, we will learn about Send Beautiful HTML Email using Laravel with an example.

Send email via Gmail SMTP server in Laravel 7/6

There are the Following The simple About Send mail vias Gmail SMTP server in Laravel 7/6 Full Information With Example and source code.

Also Read This πŸ‘‰   validation Update User Profile in Laravel 5.7

As I will cover this Post with live Working example to develop PHP Laravel 5.6 – Send Email using Mail Example, so the laravel send mail from localhost for this example is following below.

More Details for Pakainfo Blog:Free Download Example –

Setting up the Mail Driver

First of all Go to this link and Simple signup setup a account.

Open .env


Generating Mailables

php artisan make:mail LiveSimpleMail



namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use App\User;

class LiveSimpleMail extends Mailable
    use Queueable, SerializesModels;

    public $user;
    public function __construct()
         $this->user = $user;

    public function build()
        return $this->view('emails.demo');

Laravel Email View File


<!DOCTYPE html>
    <title>PHP Laravel 7/6 - Send Email using Mail Example</title>

<h2>Welcome to the web site</h2>
  This is a simple email demo from pakainfo.come
  <h1>Mail from</h1>
  <p>Thank you, {{ $user->name }}</p>


Sending Email


public function index()
    $email = Auth::user()->email;
    Mail::to($email)->send(new LiveSimpleMail());
    return view('home');

Angular 6 CRUD Operations Application Tutorials

Read :

Also Read This πŸ‘‰   Dependent dropdown example in PHP MySQL


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Send email via Gmail SMTP server in Laravel 7/6.
I would like to have feedback on my Pakainfo blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.