Home
Company
Exhibitions
Services
Clients
Contact
Coverage
Developers
News
Knowledge Base
Downloads
Wednesday, 22 Feb 2012

PHP SMS Example

We provide you with implementation examples that are available to help you connect to our gateway through PHP, eliminating any learning curves. These programming examples connect via our HTTP API.

For more examples and information, please visit our download section.

For a free trial please contact us.

<?

/*
Software: HTTP API - Send SMS Example: Simple Text SMS
Version: 3.07
Email: support@solutions4mobiles.com
Info: http://www.solutions4mobiles.com
Phone: +44 203 318 3618

Copyright (c) 1999-2010, Mobiweb Ltd. All Rights Reserved.
LICENSE:
Distributed under the General Public License v3 (GPLv3)
http://www.gnu.org/licenses/gpl-3.0.html
This program is distributed AS IS and in the hope that it will be useful
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SERVICES:
We offer a number of paid services at http//www.solutions4mobiles.com:
- Bulk SMS / MMS / Premium SMS Services / HLR Lookup Service

HELP:
- This class requires a valid HTTP API Account. Please email to
sales@solutions4mobiles.com to get one
*/

/*
Simple Text SMS Example
@copyright 1999 - 2010 Mobiweb Ltd.
*/


require_once('sms.php'); // Include SMS class file.
$sol4mob_sms=new sms(); // Create SMS object.
$sol4mob_sms->username='username'; // The HTTP API username of your account.
$sol4mob_sms->password='password'; // The HTTP API password of your account.
$sol4mob_sms->msgtext='Hello World'; // The SMS Message text.
$sol4mob_sms->originator='TestAccount'; // The desired Originator of your message.
$sol4mob_sms->phone='recipient'; // The full International mobile number of the
// recipient excluding the leeding +.
echo $sol4mob_sms->send(); // Call method send() to send SMS Message.
?>

Newsletter

Sign up for our newsletter. Be informed about our services and learn how you can benefit from our offers.

Email: