Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dongri/sendhub
https://github.com/dongri/sendhub
amazon-ses mailgun rust sendgrid slack
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dongri/sendhub
- Owner: dongri
- License: mit
- Created: 2019-10-11T14:04:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T22:13:35.000Z (over 1 year ago)
- Last Synced: 2024-05-02T06:11:29.593Z (9 months ago)
- Topics: amazon-ses, mailgun, rust, sendgrid, slack
- Language: Rust
- Homepage:
- Size: 247 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sendhub
sendhub provides api to send emails and slack webhook.![sendhub](https://github.com/dongri/images/blob/master/sendhub.png?raw=true "sendhub")
# Email Providers
* amazon ses
* mailgun
* sendgrid# Change Email Primary Privider
```
curl -XPOST http://localhost:3000/api/email/settings \
-H 'Content-Type:application/json' \
-d '{"primary": "mailgun"}'
```# Setting Load Balancing
```
curl -XPOST http://localhost:3000/api/email/settings \
-H 'Content-Type:application/json' \
-d '{"load_balancing": true}'
```# Send Email And Slack Message
```
curl -XPOST http://localhost:3000/api/email/raw \
-H 'Content-Type:application/json' \
-d '{"from": "[email protected]", "to": "[email protected]", "subject": "hello subject", "html": "
``````
curl -XPOST http://localhost:3000/api/email/template \
-H 'Content-Type:application/json' \
-d @- << EOF
{
"from": "[email protected]",
"to": "[email protected]",
"subject": "hello subject",
"template": "hello",
"values": {
"message": "hello sendhub"
}
}
EOF
``````
curl -XPOST http://localhost:3000/api/slack/message \
-H 'Content-Type:application/json' \
-d '{"channel": "monitor", "text": "system error"}'
```# Edit template
`/templates/` Edit Email templates