24 lines
546 B
Markdown
24 lines
546 B
Markdown
# Twillio Mail to SMS/CALL alerts
|
|
|
|
These two python scripts will accept a mail message at STDIN and call or text via the Twillio service
|
|
|
|
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`
|