Simple email sender using SendGrid for server watching script.
$ go get github.com/macrat/alerter
$ export ALERTER_SENDGRID_APIKEY="your api key"
$ echo hello world | alerter -to [email protected] -from [email protected] -subject hello
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. |