laravel-newsletter-emailoctopus maintained by adamcmoore
Description
EmailOctopus Driver for Spatie Laravel Newsletter
Author
Last update
2024/03/20 11:10
(dev-master)
License
Downloads
102
Tags
EmailOctopus Driver for Spatie Laravel Newsletter
Installation
composer require adamcmoore/laravel-newsletter-emailoctopus
Usage
This package is a driver for Spatie Newsletter.
To use this driver set your config/newsletter.php to include the below:
<?php
return [
'driver' => AcMoore\LaravelNewsletter\Drivers\EmailOctopusDriver::class,
'driver_arguments' => [
'api_key' => env('EMAIL_OCTOPUS_API_KEY'),
],
'default_list_name' => 'default',
'lists' => [
'default' => [
'id' => env('EMAIL_OCTOPUS_LIST_ID'),
],
],
];
Documentation for full usage can be found on the Spatie Newsletter GitHub page.
Testing
Clone tests/.env.example to tests/.env and set the required config values.
For all tests to pass you should ensure your testing list has Double opt-in enabled.