Save downloaded binary as ayd-mailto-alert to somewhere directory that registered to PATH.
Usage
Use mailrc
$ cat ~/.mailrc
set smtp=smtps://smtp.gmail.com
set smtp-auth-user="your username"
set smtp-auth-password="your password"
set from="your name <[email protected]>"
$ export AYD_URL="http://ayd-external-url.example.com"
$ ayd -a mailto:[email protected] ping:your-target.example.com
Use environment variable
$ export SMTP_SERVER=smtp.gmail.com:465
$ export SMTP_USERNAME=<< your username >>
$ export SMTP_PASSWORD=<< your password >>
$ export AYD_URL="http://ayd-external-url.example.com"
$ ayd -a mailto:[email protected] ping:your-target.example.com