定制 ashfieldjumper/laravel-scaleway-mailer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ashfieldjumper/laravel-scaleway-mailer

Composer 安装命令:

composer require ashfieldjumper/laravel-scaleway-mailer

包简介

A Laravel mailer driver for Scaleway transactional emails

README 文档

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.

统计信息

  • 总下载量: 275
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-14