Download the PHP package stidges/laravel-sparkpost-transport without Composer
On this page you can find all versions of the php package stidges/laravel-sparkpost-transport. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stidges/laravel-sparkpost-transport
More information about stidges/laravel-sparkpost-transport
Files in stidges/laravel-sparkpost-transport
Package laravel-sparkpost-transport
Short Description Sparkpost transport for Laravel 11.x
License MIT
Homepage https://github.com/stidges/laravel-sparkpost-transport
Informations about the package laravel-sparkpost-transport
Sparkpost transport for Laravel 11.x
A Sparkpost transport for Laravel 11.x
Note: use v1 of this package for Laravel 9.x support Note: use v2 of this package for Laravel 10.x support
Installation
You can install the package via composer:
Usage
1. Configuration
To get started, update your config/services.php
with your Sparkpost secret key like so:
Next, add the Sparkpost transport to the mailers
section of your config/mail.php
:
And finally, update your .env
file to add the SPARKPOST_SECRET
and to update the MAIL_MAILER
:
2. Customizing the Sparkpost API domain
If you'd like to use the EU domain for Sparkpost, you can add the domain
to your config/services.php
file:
3. Customizing Sparkpost Transmission API options
You can add a options
array to your config/services.php
to add any data you would like to send to the Sparkpost API.
Any data in the options
array will be merged into the API request body. For details on how you can customize the
transmission, review the Sparkpost API documentation
4. Customizing the Guzzle client
You can add any options to the Guzzle client by adding a guzzle
array to your config/services.php
file:
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.