Hello,
Finally I got working the email. I am trying the sms script of clickatell its not working. the code i am using is given below
I am getting the following error
Finally I got working the email. I am trying the sms script of clickatell its not working. the code i am using is given below
Code:
#!/usr/bin/php
<?php
/*****************************************
*smsclickatell
*
* A simple script to send an SMS via
* www.clickatell.com.
*
*
*****************************************/
// Set the following three values:
$apiid="3216538";
$user="sayeed333";
$password="GINdijl8";
// Do not change anything beneath this line:
if($_SERVER["argc"]<3){
die("Usage: ".$_SERVER["argv"][0]." recipientmobilenumber message\n");
}
$apiargs=array();
$apiargs["api_id"]=$apiid;
$apiargs["user"]=$user;
$apiargs["password"]=$password;
$apiargs["to"]=$_SERVER["argv"][1];
$apiargs["text"]=$_SERVER["argv"][3];
$apiargs["from"]="Zabbix";
$apiargs["req_feat"]=32;
$url="http://api.clickatell.com/http/sendmsg?";
foreach($apiargs as $k=>$v)$url.="$k=".urlencode($v)."&";
@file_get_contents($url);
?>
Code:
/etc/zabbix/smsclickatell: /usr/bin/php: bad interpreter: Permission denied
Comment