alerter

command module
v0.0.0-...-64955a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 7 Imported by: 0

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL