adamcmoore/laravel-newsletter-emailoctopus

EmailOctopus Driver for Spatie Laravel Newsletter

0.1 2024-03-19 13:28 UTC

This package is auto-updated.

Last update: 2024-04-20 10:21:04 UTC


README

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.