Website updated on: Tuesday, August 26, 2008 
On-line manual:

Overview On-line manual On-line support Download Pricing and licensing Contact Us Login
OZEKI NG SMS Gateway - Product Guide

Overview Contents | SearchASP.NET Example

Home > Product Manual > Developers Guide > ASP SMS API > SMS API for ASP developers

SMS Gatway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  ASP SMS API
  Overview
  SMS API for ASP developers
  ASP.NET Example
  ASP Example
  ASP with built in webserver
  PHP SMS API
  HTTP SMS API
  SQL SMS API
  C Sharp SMS API
  AJAX SMS API
  Tutorials
  Delphi SMS API
  Examples and Solutions
  Appendix
  FAQ
  Commercial Information
  Search

SMS API for ASP Developers

On this page software developers can learn how to send SMS messages from an ASP application using the Ozeki NG - SMS Gateway software.

Ozeki NG - SMS Gateway can be used to send out SMS messages from an ASP application. In order to send a message, the application has to perform an HTTP request. The built-in webserver of Ozeki NG - SMS Gateway receives the request and adds the posted SMS message to the outgoing message queue. After some time the message will be sent (Figure 1). (The status of the outgoing message can be queried by subsequent HTTP requests)



Figure 1 - Sending SMS from an ASP application

To send an SMS message from ASP, you can use the code below. This example code will send a text message containing the text "Hello World" to the +36205222245 telephone number.

ASP example

http://localhost/smssend.asp

<%
    Dim strMsg
    Dim strReceiver
    Dim strUrl

    ' Retrieve the posted items from the HTTP-SMS gateway
    strUrl = "http://localhost:9501/ozeki?"
    strRequest = "username=admin";
    strRequest = strRequest+"&password=abc123";
    strRequest = strRequest+"&action=sendMessage";
    strRequest = strRequest+"&messageType=SMS:TEXT";
    strRequest = strRequest+"&recipient="+Server.URLEncode("+36205222245");
    strRequest = strRequest+"&messageData="+Server.URLEncode("Hello World");  

   strUrl = strUrl+strRequest;

    'Create InternetExplorer
    Dim WebBrowser: Set WebBrowser = CreateObject("InternetExplorer.Application")
   
    WebBrowser.Navigate strUrl

    Do While WebBrowser.busy
    Loop
    WebBrowser.Quit

    'Display message info to the user
    Response.Write("The message has been sent . " + chr(13))
%>

Binary message types such as WAP PUSH messages, operator logos and ringtones can also be sent using this technique. All you have to do is change the messageType field and the messageData field to the appropriate message content. A list of supported message types can be found at the following URL:
http://www.ozekisms.com/index.php?owpn=223.

Related page:

  • SMS Message Types





Next page: ASP.NET Example
Source: http://www.ozekisms.com/index.php?owpn=205
Copyright © 2000 - 2008 Ozeki Informatics Ltd.
All rights reserved

Legal information        |         Privacy policy        |         Terms of use
Please, address your inquiries to info@ozekisms.com



Cached