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
- Alaska: General Communications
- Argentina: Claro, Personal
- Australia: T-Mobile/Optus Zoo
- Austria: T-Mobile
- Brazil: Vivo
- Bulgaria: Mtel, Globul
- Canada: Aliant, Bell Mobility, Fido, MTS Mobility, Rogers Wireless, Sasktel Mobility, Telus, Virgin Mobile
- Crotia: T-Mobile, Tigo
- Colombia: Comcel
- France: Bouygues Telecom
- Germany: T-Mobile, Vodafone, O2, E-Plus
- Iceland: OgVodafone, Siminn
- India: Andhra Pradesh Airtel, BPL Mobile Mumbai, Karnataka Airtel
- Ireland: Meteor
- Italy: TIM, Vodafone
- Japan: AU by KDDI, NTT DoCoMo, Vodafone Chuugoku/Western, Vodafone Hokkaido, Vodafone Hokuriko/Central North, Vodafone Kansai/West, including Osaka, Vodafone Kanto/Koushin/East, including Tokyo, Vodafone Kyuushu/Okinawa, Vodafone Shikoku, Vodafone Touhoku/Niigata/North, Vodafone Toukai/Central, Willcom, Willcom di, Willcom dj, Willcom dk
- Mexico: Nextel
- Mauritius: Emtel
- Nepal: Mero Mobile
- Netherlands: T-Mobile, Orange
- Nicaragua: Claro
- Singapore: M1
- South Africa: Vodacom, MTN
- Spain: Telefonica Movistar, Vodafone
- Sri Lanka: Mobitel
- Sweden: Tele2
- Switzerland: Sunrise Communications
- United States: 7-Eleven Speak Out Wireles, Alaska Communications Systems, Alltel, Ameritech, Appalachian Wireless, AT&T Mobility, ATT Wireless, Bluegrass Cellular, Bellsouth, Boost, Cellular One, Cellular South, Centennial Wireless, Cincinnati Bell Wireless, Edge Wireless, Sprint PCS, Teleflip, T-Mobile, Metro PCS, Nextel, O2, Orange, Qwest, Rogers Wireless, Telus Mobility, US Cellular, Verizon, Virgin Mobile
United Kingdom: O2 #1, O2 #2, Orange, T-Mobile, Virgin Mobile, Vodafone
Insert First (Initialize):
-
<?
-
// This class will send an SMS message to supported services
-
// http://thedevnet.com/php/classes/send-sms-by-email/
-
-
// Include Class
-
require_once('class-email2sms.php');
-
// Create Object
-
$email2sms_obj = new Email2SMS('from@email.com', 'email2sms.db');
-
?>
Example:
-
<?
-
// remember to already have the class included and object created
-
/** Sample Email2SMS Usage */
-
-
// Setting Country and carrier information (see email2sms.db)
-
$email2sms_obj -> setProperty('email2smsCountry', 'Canada');
-
$email2sms_obj -> setProperty('email2smsCarrier', 'Bell Mobility');
-
-
// Subject and Target Phone Number
-
$email2sms_obj -> setProperty('email2smsSubject', 'Hello');
-
$email2sms_obj -> setProperty('email2smsNumber' , '9055551212');
-
-
// Setting SMS text
-
$email2sms_obj -> setProperty('email2smsText' , "SMS text goes here");
-
-
// Voila, SMS sent!
-
$email2sms_obj -> prepareAndSendSMS();
-
-
-
// Getting errors (uncomment the following):
-
// echo $email2sms_obj -> getError();
-
// print_r($email2sms_obj -> getError('all'));
-
?>
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.
| Languages: |
English |
| Author: |
utsavhanda |
| Platforms: |
Web Based |
| License: |
GNU General Public License |
| Date: |
October 18, 2009 |
GD Star Rating
loading...
Originally posted 2009-10-18 15:53:05.
Popularity: 6%
Posted by natster @ 31 August 2010