ashfieldjumper / laravel-scaleway-mailer
A Laravel mailer driver for Scaleway transactional emails
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
- illuminate/mail: ^10.48|^11.0
This package is auto-updated.
Last update: 2025-03-14 12:51:13 UTC
README
Laravel Scaleway Mailer is a Laravel package that provides a mail transport driver for Scaleway Transactional Email, allowing you to easily send emails via the Scaleway API within your Laravel application.
Installation
1. Requirements
- Laravel 8.x, 9.x, 10.x or 11.x
- PHP 8.0 or higher
2. Install via Composer
Add this package to your Laravel project via Composer:
composer require ashfieldjumper/laravel-scaleway-mailer
3. Configuration
After installation, the service provider will be automatically loaded by Laravel thanks to autoloading. Next, add your Scaleway API key and other required configurations to your .env file:
SCW_SECRET_KEY=your-scaleway-secret-key SCW_PROJECT_ID=your-scaleway-project-id SCALEWAY_EMAIL_REGION=fr-par MAIL_FROM_ADDRESS=your-email@example.com MAIL_FROM_NAME="Your Application Name"
4. Modify Mail Configuration
'mailers' => [ 'scaleway' => [ 'transport' => 'scaleway', 'secret_key' => env('SCW_SECRET_KEY'), 'project_id' => env('SCW_PROJECT_ID'), 'region' => env('SCALEWAY_EMAIL_REGION', 'fr-par'), ], // other mailers... ],
Also, set the default MAIL_MAILER to scaleway in your .env file:
MAIL_MAILER=scaleway
Issues and Contributions
If you find a bug or want to suggest a new feature, feel free to create an issue in the GitHub repository.
Contributions are always welcome. Feel free to submit a pull request!
License
This package is licensed under the MIT license. Please see the LICENSE
file for more information.