magroski / simple-ses
使用Amazon SES快速简单地发送电子邮件。
v1.0.1
2022-11-29 16:47 UTC
Requires
- php: ^7.1 || ^8
- aws/aws-sdk-php: ^3.27
Requires (Dev)
- object-calisthenics/phpcs-calisthenics-rules: ^3.1
- phpstan/phpstan: ^0.10.0
- roave/security-advisories: dev-master
- slevomat/coding-standard: 4.5
- squizlabs/php_codesniffer: *
This package is auto-updated.
Last update: 2024-08-29 05:22:37 UTC
README
这个库提供了一个快速简单的方法来使用Amazon SES发送电子邮件。
使用示例
$config = new Config('access_key', 'secret_key', 'ue-east-1'); $client = new Client($config); # Single Recipient $client->send('Subject', 'Body', 'recipient@cool.com'); # Multiple Recipients $client->send('Subject', 'Body', ['recipient@cool.com', 'another@email.com']); # Text instead of html $client->send('Subject', 'Body', 'recipient@nice.com', true);