Skip to main content

Clickatell

SMS messaging via SMTP API via Clickatell.

Send SMS

Replace NUMBERS, api_id, user and password.

#!/bin/bash
NUMBERS=(111111111)
function send_sms() {        local num=$1        local mesg=$2        echo "Sending to ${num}..."        echo "api_id: x                user: x                password: x                from: X                to: $num                text: $mesg" | mail [email protected]}
MSG="Hello World"
for number in ${NUMBERS[@]}; do        send_sms $number "$MSG"done