I am trying to use the send with user context method and it does seem to work
I am passing in 3 parameters, the mobile number, the message and the context but get no messages back, no text is sent and no status fields appear to be available.
So my questions are basically does this function actually work and if it does is there a limit on what the context value can be re field types and length?
The function is am trying to use is akin to
function smsmessage($mobile,$smstext,$context)
{
// SendMessageWithUserContext
if ($mobile == "99999999999")
{
$mobile = "99999999999";
$objIntelliSMS = new IntelliSMS();
$objIntelliSMS->Username = 'xxxxxx';
$objIntelliSMS->Password = 'xxxxxxxxxxxxx';
$objIntelliSMS->SendMessageWithUserContext ( $mobile, $smstext, $context );
}
$sendresult_detailed = "";
foreach ( $SendStatusCollection as $SendStatus )
{
$sendresult_detailed = $sendresult_detailed .
$SendStatus["To"] . " " .
$SendStatus["MessageId"] . " " .
$SendStatus["Result"] . "<BR>";
}
echo $sendresult_detailed;
fads_audit_log("Text message",$mobile." - ".$smstext."(".$context.")",$sendresult_detailed,'Y','N');
}
While testing I am only allowing it to send to me personally and for security have replaced my phone number and login details in the above with other values
Edited by user
2012-07-11T13:28:08Z
|
Reason: Not specified