https://github.com/macrat/alerter
Simple email sender using SendGrid for server watching script
https://github.com/macrat/alerter
Last synced: 12 months ago
JSON representation
Simple email sender using SendGrid for server watching script
- Host: GitHub
- URL: https://github.com/macrat/alerter
- Owner: macrat
- License: mit
- Created: 2017-10-02T17:12:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T17:49:15.000Z (over 8 years ago)
- Last Synced: 2024-06-20T12:43:22.310Z (about 2 years ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Alerter
=======
Simple email sender using SendGrid for server watching script.
## Usage
```
$ go get github.com/macrat/alerter
$ export ALERTER_SENDGRID_APIKEY="your api key"
$ echo hello world | alerter -to to-address@example.com -from from@example.com -subject hello
```
## Command-line Options / Environment Variables
|option |environment variable |description |
|----------------|-------------------------|---------------------------------------------|
| |ALERTER\_SENDGRID\_APIKEY|API Key of SendGrid. This is Required. |
|-to |ALERTER\_TO |To address. |
|-to-name |ALERTER\_TO\_NAME |To name. |
|-from |ALERTER\_FROM |From address. |
|-from-name |ALERTER\_FROM\_NAME |From name. |
|-subject |ALERTER\_SUBJECT |The subject of email. |
|-help | |Show usage. |
|-verbose | |Show verbose debug messages. |
|-extra-verbose | |Show verbose debug messages included API key.|
|-dryrun | |Don't send, only parse options. |