This package provides a MailJet mail driver for your Themosis / Laravel / Illuminate based application.
It extends the default list of mail drivers provided by the illuminate/mail
package by adding the mailjet
option.
The installation is done through Composer:
composer require themosis/mailjet-driver
First, specify your default mail driver as mailjet
from your application environment file and add the service public and secret keys:
MAIL_DRIVER=mailjet
MAILJET_PUBLIC_KEY=1234567890
MAILJET_SECRET_KEY=1234567890
Open (or create) the config/services.php
file and add the MailJet services credentials:
return [
'mailjet' => [
'public' => env('MAILJET_PUBLIC_KEY'),
'secret' => env('MAILJET_SECRET_KEY'),
'version' => env('MAILJET_VERSION', 'v3.1')
],
...
];
By default, your application has the Illuminate\Mail\MailServiceProvicer
defined inside the config/app.php
file. In order to enable the mailjet
driver, you need to replace the default service provider by the one provided by this package, the Themosis\MailJet\MailServiceProvider
like so:
return [
'providers' => [
// Illuminate providers...
Themosis\MailJet\MailServiceProvider::class,
// Application providers
]
];
Please see the CHANGELOG file for more information on releases changes.
If you discover any security related issues, please send an email email to julien@themosis.com.
Themosis is a webdesign agency based in Arlon, Belgium. We specialized in custom publishing web platforms and have expertise in building applications with WordPress.
We've built the Themosis framework, an open-source WordPress framework.
GPL-2.0-or-later. Please see LICENSE file for more information.