SMS Messaging
Server


 Product Overview

 Download (.exe)

 Brochure (.pdf)

 Online Manual

 Release Notes

 Case Studies:
 


Support

 Knowledge Base

 API Samples

 Forum

 Contact Support


Purchase

 Licensing Scheme

 Pricing

 Order now


Related documents

 SMPP Providers

 Cellular
 Communications


 SMS Glossary

 SMS Documents



  Download ActiveXperts SMS Messaging Server 4.1  (5828 KB - .exe file)


Send an SMS message using the SMS Messaging Server API - PHP


SMS Messaging Server is an SMS messaging framework that enables companies to send, receive and process SMS- and e-mail messages. The framework is designed support virtually any scenario where low-and high volume SMS messaging is required. Use SMS Messaging Server in the following scenarios:
  • Mobile users query a database; results are sent back via SMS or e-mail;
  • Mobile users receive important information via SMS or e-mail while they are away from the office;
  • Stock prices are sent automatically via SMS and/or e-mail, daily;
  • Remote workers can update their worksheet from a remote location trough SMS;
  • ICT administrators restart/reboot servers and/or daemons from remote by SMS;
  • Setup an SMS voting system, supporting SMS and/or e-mail;
  • Etc.
SMS Messaging Server can be well integrated into PHP environments.
This document describes how the SMS Messaging Server can be integrated into PHP projects.


Step 1: Download and install SMS Messaging Server

Download ActiveXperts SMS Messaging Server from the ActiveXperts Download Site and start the installation. The installation guides you through the installation process.



Step 2: Create the SMS Messaging Server PHP objects

Create a new PHP script called index.php in the root directory of IIS or Apache, using your favorite editor. On top of the PHP code, insert the following lines to declare and create the SMS Messaging Server API objects:
$objConstants = new COM ( "AxSmsServer.Constants" );
$objMessageDB = new COM ( "AxSmsServer.MessageDB" );


Step 3: Send an SMS message

You can now send an SMS messages.

The following PHP code shows how to create an SMS message:
<html>
   <head>
   <META HTTP-EQUIV="CONTENT-Type" CONTENT="text/html;CHARSET=utf-8" >
   <title>ActiveXperts SMS Messaging Server PHP Sample</title>
   </head>
   <body>
   <?php
   $objConstants = new COM ( "AxSmsServer.Constants" );
   $objMessageDB = new COM ( "AxSmsServer.MessageDB" );
   
   $objMessageDB->Open ();
   
   if ( $objMessageDB->LastError <> 0 )
   {
      $ErrorDes = $objMessageDB->GetErrorDescription ( $objMessageDB->LastError );

      die ( $ErrorDes );
   }

   $objMessage = $objMessageDB->Create ();

   if ( $objMessageDB->LastError <> 0 )
   {
      $ErrorDes = $objMessageDB->GetErrorDescription ( $objMessageDB->LastError );

      die ( $ErrorDes );
   }
   
   $objMessage->Direction     = $objConstants->MESSAGEDIRECTION_OUT;
   $objMessage->Type          = $objConstants->MESSAGETYPE_SMS;
   $objMessage->Status        = $objConstants->MESSAGESTATUS_PENDING;
   $objMessage->ChannelID     = 0;
   $objMessage->ScheduledTime = ""; 
   $objMessage->Recipient     = "+31625044454";
   $objMessage->Body          = "SMS Messaging Server - PHP Test SMS";

   // Save the Message
   
   $objMessageDB->Save ( $objMessage );

   if ( $objMessageDB->LastError <> 0 )
   {
      $ErrorDes = $objMessageDB->GetErrorDescription ( $objMessageDB->LastError );

      die ( $ErrorDes );
   }

   Echo "Successfully created new SMS Message";

   ?>
   </body>
</html>





ActiveXperts SMS Messaging Server is a messaging framework to send and receive email and SMS messages. Use the API to create new messages from various development platforms, including Visual Basic .NET, Visual CSharp .NET, ASP .NET (VB,CS), ASP, Visual Basic, Visual Studio/Visual C++, Delphi, PHP, HTML, VBScript and any other ActiveX/COM compliant platform. SMS Messaging Server is an ActiveXperts Software B.V. Product.

Copyright ©1999-2007 ActiveXperts Software. All rights reserved.