willemo/laravel-appmail-transport

This package is abandoned and no longer maintained. No replacement package was suggested.

AppMail.io mail transport for Laravel 5

v1.0.3 2017-03-16 12:00 UTC

This package is auto-updated.

Last update: 2022-05-28 10:14:31 UTC


README

AppMail.io mail transport for Laravel 5.x. This package adds a mail driver that supports the AppMail.io API v1.

This project is abandoned

This project is no longer supported.

Installation

To install this package you'll have to require it in composer:

composer require willemo/laravel-appmail-transport:1.*

After this you'll have to replace the default MailServiceProvider from Laravel in config/app.php:

Illuminate\Mail\MailServiceProvider::class, // remove this one
Willemo\LaravelAppMailTransport\ExtendedMailServiceProvider::class, // add this one

Now the only things you'll have to do is add your AppMail.io server key to the config/services.php file and add the APPMAIL_KEY variable to your .env file or environment variables:

config/services.php:

'appmail' => [
    'key' => env('APPMAIL_KEY'),
],

.env:

APPMAIL_KEY=my_super_secret_appmail_server_key

Now all your emails will be sent through the AppMail.io API.

Todo

What's still on the todo list for this package is the following:

  • Process exceptions from the API;
  • Create some way to get the message ID and tokens from the response from the API (possibly through events);
  • Add tests.