Error: Could not fetch http://thedevnet.com/wp-content/plugins/gd-star-rating/css/gdsr.css.php?t=0&s=a10i10m20k20c05r05%23121620243046%23121620243240%23s1pchristmas%23s1pcrystal%23s1pdarkness%23s1poxygen%23s1goxygen_gif%23s1pplain%23s1ppumpkin%23s1psoft%23s1pstarrating%23s1pstarscape%23t1pclassical%23t1pstarrating%23t1gstarrating_gif&ver=1.7.2 for caching. You might need to exclude this file in WP Minify options. The Developer Network – Send SMS by Email.

Send SMS by Email.

This class can be used to send SMS by e-mail to clients of many country carriers.

It can compose and send an e-mail message to an address of a carrier that delivers the SMS message to a client of a given mobile carrier.

The class can customize the SMS message to be sent for a variety of handsets including Symbian smart phones, Andriod phones and old handsets.

Supports the following carriers:

    click here to view

Insert First (Initialize):

  1. <?
  2.  // This class will send an SMS message to supported services
  3.  // http://thedevnet.com/php/classes/send-sms-by-email/
  4.  
  5.  // Include Class
  6.  require_once('class-email2sms.php');
  7.  // Create Object
  8.  $email2sms_obj = new Email2SMS('from@email.com', 'email2sms.db');
  9. ?>

Example:

  1. <?
  2.  // remember to already have the class included and object created
  3.  /** Sample Email2SMS Usage */
  4.  
  5.  // Setting Country and carrier information (see email2sms.db)
  6.  $email2sms_obj -> setProperty('email2smsCountry', 'Canada');
  7.  $email2sms_obj -> setProperty('email2smsCarrier', 'Bell Mobility');
  8.  
  9.  //  Subject and Target Phone Number
  10.  $email2sms_obj -> setProperty('email2smsSubject', 'Hello');
  11.  $email2sms_obj -> setProperty('email2smsNumber' , '9055551212');
  12.  
  13.  // Setting SMS text
  14.  $email2sms_obj -> setProperty('email2smsText'   , "SMS text goes here");
  15.  
  16.  // Voila, SMS sent!
  17.  $email2sms_obj -> prepareAndSendSMS();
  18.  
  19.  
  20.  // Getting errors (uncomment the following):
  21.  // echo $email2sms_obj -> getError();
  22.  // print_r($email2sms_obj -> getError('all'));
  23. ?>
Email 2 SMS
email-2-sms-2009-10-11.zip
Version: 1.0

8.9 KiB
35 Downloads
Details…

GD Star Rating
loading...

Originally posted 2009-10-18 15:53:05.

Popularity: 6%

Posted by natster   @   31 August 2010

Like this post? Share it!

RSS Digg Twitter StumbleUpon Delicious Technorati Facebook

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

You must be logged in to post a comment.

Previous Post
« PHP User Management Script Using htaccess
Next Post
Multiple File Uploading With PHP »
Powered by Wordpress   |   Lunated designed by ZenVerse