These two python scripts will accept a mail message at STDIN and call or text via the Twillio service.
Go to file
2018-06-07 07:36:22 -07:00
call_alerts.py Initial Commit 2018-06-07 07:36:22 -07:00
LICENSE Initial Commit 2018-06-07 07:36:22 -07:00
README.md Initial Commit 2018-06-07 07:36:22 -07:00
sms_alerts.py Initial Commit 2018-06-07 07:36:22 -07:00

Twillio Mail to SMS/CALL alerts

These two python scripts will accept a mail messgae at STDIN and call or text via the Twillio servive

You need to adjust these values in the scripts:

  • account_sid
  • auth_token
  • to
  • from_

You can find the account_sid, auth_token and from_ values at https://twilio.com/user/account

You can copy the scripts under the /usr/local/sbin directory

Then add these lines in /etc/aliases:

alerts: "|/usr/local/sbin/sms\_alerts.py"
call: "|/usr/local/sbin/call\_alerts.py"

and run newaliases