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 <your-email@example.com>"
$ export AYD_URL="http://ayd-external-url.example.com"
$ ayd -a mailto:your-email@example.com 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:your-email@example.com ping:your-target.example.com