Skip to content

robkerry/emailit-laravel-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emailit Laravel Driver

MIT licensed

This PHP package provides a native mail driver for Laravel applications. Once installed and configured, Mailers are routed via the Emailit API.

Table of Contents

Installation

Requirements

  • Laravel 10.0+
  • PHP 8.0+
  • Guzzle 7.0+
  • An API Key from emailit.com

Setup

You can install the package via composer:

composer require robkerry/emailit-laravel-driver

If you'd like to publish the config file, you can do that using:

php artisan vendor:publish --tag=emailit-config

Next, you need to set EMAILIT_API_KEY in your .env file:

EMAILIT_API_KEY=

And set the environment variable MAIL_MAILER in your .env file

MAIL_MAILER=emailit

Then, double check that your FROM data is filled in .env:

[email protected]
MAIL_FROM_NAME="App Name"

Lastly, add Emailit as a Laravel Mailer in config/mail.php in the mailers array:

'emailit' => [
    'transport' => 'emailit',
],

Thanks

This plugin is a fork of the MailerSend package found here: https://github.com/mailersend/mailersend-laravel-driver

Thank you to them for creating and MIT licensing it, so that I could use it for my current email provider.

License

The MIT License (MIT)