robkerry/emailit-laravel-driver

Emailit Laravel Driver

v1.3 2025-06-27 20:39 UTC

This package is auto-updated.

Last update: 2025-06-27 20:40:04 UTC


README

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:

MAIL_FROM_ADDRESS=app@yourdomain.com
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)