File: test.php

Recommend this page to a friend!
  Classes of Afilnet  >  PHP SMS Sending API  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: script to check class use
Class: PHP SMS Sending API
Send simple SMS messages with the Afilnet API
Author: By
Last change:
Date: 6 years ago
Size: 539 bytes
 

 

Contents

Class file image Download
<?php
   
include("send-simple-sms.php");
   
   
$email = "EMAIL"; // Afilnet account's email
   
$password = "PASSWORD"; // Afilnet account's password
   
$mobile = "MOBILE"; // mobile target
   
$sender = "SENDER"; // sender 11 characters maximum
   
$prefix = "PREFIX"; // country prefix
   
$sms = "This is a simple sms send test through our API (Afilnet)"; // sms 160 characters maximum
   
   
$send = new SendSimpleSMS($email, $password, $mobile, $sender, $prefix, $sms);
   
   
$send->send();
   
    echo
$send->getReturnMessage();

?>


For more information send a message to info at phpclasses dot org.