Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/overtrue/sendcloud
SendCloud Mail SDK
https://github.com/overtrue/sendcloud
mail sendcloud sendcloud-api sendcloud-mail sendcloud-sdk
Last synced: 2 months ago
JSON representation
SendCloud Mail SDK
- Host: GitHub
- URL: https://github.com/overtrue/sendcloud
- Owner: overtrue
- Created: 2017-12-21T03:49:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T08:08:07.000Z (almost 6 years ago)
- Last Synced: 2024-10-04T23:45:18.968Z (3 months ago)
- Topics: mail, sendcloud, sendcloud-api, sendcloud-mail, sendcloud-sdk
- Language: PHP
- Size: 5.86 KB
- Stars: 20
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SendCloud
:e-mail: [SendCloud](https://www.sendcloud.net) Mail SDK
## Installing
```shell
$ composer require overtrue/sendcloud -vvv
```## Usage
```php
use Overtrue\SendCloud\SendCloud;$apiUser = 'overtrue_test_xxxx';
$apiKey = 'UWoBGa2sgxyxxxxxxxx';$client = new SendCloud($apiUser, $apiKey);
$result = $client->post('/mail/send', [
'from' => '[email protected]',
'to' => '[email protected]',
'subject' => '来自 SendCloud 的第一封邮件!',
'html' => '你太棒了!你已成功的 从 SendCloud 发送了一封测试邮件!',
]);var_dump($result);
//{
// "result": true,
// "statusCode": 200,
// "message": "请求成功",
// "info": {
// "emailIdList": [
// "1513828329529_91891_27315_500.sc-10_9_13_218-inbounddemo@easywechat.com"
// ]
// }
//}⏎```
## PHP 扩展包开发
> 想知道如何从零开始构建 PHP 扩展包?
>
> 请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— [《PHP 扩展包实战教程 - 从入门到发布》](https://learnku.com/courses/creating-package)## License
MIT