drewlabs/envoyer-aws
最新稳定版本:v0.2.0
Composer 安装命令:
composer require drewlabs/envoyer-aws
包简介
AWS SES and Pinpoint drivers for envoyer library
README 文档
README
The library provides envoyer client drivers/adapters for AWS SES, AWS Pinpoint services.
A SESAdapter is provided by the library as interface to AWS Simple Email Service API while, a PinpointMessageAdapter is provided as interface for Short Message Service.
Usage
- AWS SES adapter
use Drewlabs\Envoyer\Drivers\Aws\SESAdapter; use Drewlabs\Envoyer\Drivers\Aws\Utils\CredentialsFactory; use Drewlabs\Envoyer\Mail; $config = require __DIR__ . '/config.php'; // Build email $mail = Mail::new() ->from($config['email'], 'SERVICES') ->to('...') ->subject('...') ->content('...'); // Create mail adapter $adapter = SESAdapter::new([ 'region' => $config['region'], // Creates a promise object for aws credentials 'credentials' => CredentialsFactory::create($config['user'], $config['password']) ]); // Send mail request $result = $adapter->sendRequest($mail);
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-12