PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Utsav Handa  >  Email 2 SMS  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script showing usage
Class: Email 2 SMS
Send SMS by e-mail to many carriers
Author: By
Last change:
Date: 12 years ago
Size: 732 bytes


Class file image Download

/** Sample Email2SMS Usage */


// Creating Object
$email2sms_obj = new Email2SMS('', 'email2sms.db');

// Setting Country and carrier information
$email2sms_obj -> setProperty('email2smsCountry', 'India');
$email2sms_obj -> setProperty('email2smsCarrier', 'Andhra Pradesh Airtel');
$email2sms_obj -> setProperty('email2smsSubject', 'SMS');
$email2sms_obj -> setProperty('email2smsNumber' , '9810112345');

// Setting SMS text
$email2sms_obj -> setProperty('email2smsText' , "SMS text goes here");

// Voila, SMS sent!
$email2sms_obj -> prepareAndSendSMS();

// Getting errors
//echo $email2sms_obj -> getError();
//print_r($email2sms_obj -> getError('all'));


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