PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nuno Chaves  >  Bulk SMS  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example
Class: Bulk SMS
Send SMS using the BulkSMS api 2.0
Author: By
Last change:
Date: 6 years ago
Size: 543 bytes
 

Contents

Class file image Download
<?php
   
include_once('class.BulkSms.php');

   
   
$bulkSms = new BulkSms( 'user', 'user', '351' );
   
    if(
$bulkSms->sendSms("test message", "961234567") ){
        echo
"Message Sent: <br>
               Status Code: "
.$bulkSms->status_code ." <br>
               Status Description: "
.$bulkSms->status_description."<br><br>";
    }
    else{
        echo
"Error Sending Message: <br>
               Status Code: "
.$bulkSms->status_code ." <br>
               Status Description: "
.$bulkSms->status_description."<br><br>";
    }
    echo
"Credits Remaining: ".$bulkSms->getCredits();

?>