fleximize/laravel-dotdigital-mail-driver
最新稳定版本:1.0.1
Composer 安装命令:
composer require fleximize/laravel-dotdigital-mail-driver
包简介
A Laravel mail driver for Dotdigital.
README 文档
README
This package simply extends Laravel's Mailer to provide a new Dotdigital
transport that is registered under the dotdigital driver.
Usage is very simple - send a Mailable the same way you would for any other driver,
but specify the dotdigital driver in the mail method.
Mail::driver('dotdigital')->send(new MyMailable());
Under the hood, this will use the dotdigital transactional email API to
send the email.
Requirements
- Laravel 10.x
- PHP 8.2 or higher
Installation
You can install the package via composer:
composer require fleximize/laravel-dotdigital-mail-driver
Once installed, publish the configuration file:
php artisan vendor:publish --provider="Fleximize\LaravelDotdigitalMailDriver\Providers\LaravelDotdigitalMailDriverServiceProvider"
This will create a dotdigital.php file in your config directory. Here, you will
need to specify the region, username, and password for your Dotdigital API user:
<?php return [ 'region' => env('DOTDIGITAL_REGION'), 'username' => env('DOTDIGITAL_USERNAME'), 'password' => env('DOTDIGITAL_PASSWORD'), ];
You can then set these values in your .env file:
DOTDIGITAL_REGION=r1 DOTDIGITAL_USERNAME=my-username DOTDIGITAL_PASSWORD=my-password
The package will automatically register the dotdigital driver within your config/mail.php file.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-03