A Laravel mail driver for Dotdigital.
fleximize/laravel-dotdigital-mail-driver is a Laravel package for a laravel mail driver for dotdigital..
It currently has 0 GitHub stars and 10 downloads on Packagist (latest version 1.0.1).
Install it with composer require fleximize/laravel-dotdigital-mail-driver.
Discover more Laravel packages by fleximize
or browse all Laravel packages to compare alternatives.
Last updated
This package simply extends Laravel's Mailer to provide a new Dotdigital
transport that is registered under the dotdigital driver.
Usage is very simple - send a Mailable the same way you would for any other driver,
but specify the dotdigital driver in the mail method.
Mail::driver('dotdigital')->send(new MyMailable());
Under the hood, this will use the dotdigital transactional email API to
send the email.
You can install the package via composer:
composer require fleximize/laravel-dotdigital-mail-driver
Once installed, publish the configuration file:
php artisan vendor:publish --provider="Fleximize\LaravelDotdigitalMailDriver\Providers\LaravelDotdigitalMailDriverServiceProvider"
This will create a dotdigital.php file in your config directory. Here, you will
need to specify the region, username, and password for your Dotdigital API user:
<?php
return [
'region' => env('DOTDIGITAL_REGION'),
'username' => env('DOTDIGITAL_USERNAME'),
'password' => env('DOTDIGITAL_PASSWORD'),
];
You can then set these values in your .env file:
DOTDIGITAL_REGION=r1
DOTDIGITAL_USERNAME=my-username
DOTDIGITAL_PASSWORD=my-password
The package will automatically register the dotdigital driver within your config/mail.php file.