PHP SDK

SendStatusArray

Array containing the send status for each recipient.

Array Entries:

$SendStatus["To"] Recipient this entry relates to
$SendStatus["MessageId"] Unique message ID for this submission
$SendStatus["Result"] Send status (See ResultCodes)

PHP Sample:

<?php

include 'IntelliSMS.php';

//Required php.ini settings:
// allow_url_fopen = On
// track_errors = On

$objIntelliSMS = new IntelliSMS();

$objIntelliSMS->AccessKey = "Yva$ER%Uhs+UU[MzwEYe";
$objIntelliSMS->SecretKey = "F{kQ^s`wVpm!EU~Bx8yB^A$N$[l{pxJA";

$SendStatusCollection = $objIntelliSMS->SendMessage ( '44771012345', 'Hello', 'SENDER_ID' );

$sendresult_detailed = "";
foreach ( $SendStatusCollection as $SendStatus )
{
	$sendresult_detailed = $sendresult_detailed . 
	                       $SendStatus["To"] . "  " . 
	                       $SendStatus["MessageId"] . "  " . 
	                       $SendStatus["Result"] . "<BR>";
}

echo $sendresult_detailed;

?>
    		

<< Back to PHP SDK