8 Sep
2017
8 Sep
'17
2:17 p.m.
hello all,
i got a subscription to an SMS gateway, and the script they gave me is this:
*<?php*
*// Simple SMS send function*
*function* sendSMS($key, $to, $message, $originator) {
$URL = *"https:**//smscenter.gr/api/sms/send?key=
<http://smscenter.gr/api/sms/send?key=>" . $key . "&to=" . $to;*
$URL .= *"&text="* . urlencode( $message ) . '&from=' .
urlencode( $originator );
$fp = fopen( $URL, 'r' );
return fread( $fp, 1024 );
}
*// Example of use*
$response = sendSMS( 'myapikey', 'recipientnumber', 'My test
message', 'from' );
echo $response;
*?>*
*-------*
*how could i implement it inside alerts.cfg in order to get sms alerts ?*
--
regards, Metron 6 (six)
Metron6 at gmail.com