Laravel Mail Template is a good package that we can use to send emails easily with some popular providers.

laravel mail template

Installation

You can install the package via composer:

composer require dansmaculotte/laravel-mail-template

The package will automatically register itself.

To publish the config file to config/mail-template.php run:

php artisan vendor:publish --provider="DansMaCulotte\MailTemplate\MailTemplateServiceProvider"

Finally, install the email service package needed:

Mailjet

composer require mailjet/mailjet-apiv3-php

Mandrill

composer require mandrill/mandrill

SendGrid

composer require sendgrid/sendgrid

Mailgun

composer require mailgun/mailgun-php

SendinBlue

composer require sendinblue/api-v3-sdk

Source Code and Documentation

https://github.com/dansmaculotte/laravel-mail-template