• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    New Member
    Posts: 1
    Registered: ‎11-22-2012

    SMS API for ASP applications

    221 Views, 1 Replies
    11-22-2012 02:30 AM

    I have found a gateway (Ozeki NG SMS Gateway) that 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.

    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))
    %>

     

    Also on related pages I could get useful idea regarding ASP with built in webserver C#. http://www.ozekisms.com/index.php?owpn=205

    Maybe this SMS API can help you too to develop SMS applications in ASP.NET.

    Anton

    Please use plain text.
    Mentor
    Posts: 246
    Registered: ‎12-04-2009

    Re: SMS API for ASP applications

    11-25-2012 04:02 PM in reply to: Antonpavlov

    HI

    Please see my errors:

    I need to fix-it?

     

    Please use plain text.