Sending SMS From Asp.Net Application

                In this article we will see how to send sms from our web application using ozeki-Ng-SMS-Getway.
1)      For sending sms from our web application we required third party sms-getway which will deliver our messages to user. You can download this Getway from here
2)      Mobile Phone whith SIM card and Datacable. Which will be used for sending our sms.
                Generally for sending Mail messages from our application we need the SMTP server which will deliver our mails. Same like this for sending SMS from  we need SMPP server which will deliver our messages to user. This getway is not a free software it’s paid software but for testing you can get 20 day’s trial edition. From here
Configuring SMS Getway:
                After instalation of oseki-ng we have to configure the setting we need. Follow the follwing step to configure.
1)      Run the ozeki-ng which is runnig on default
2)      Login with standerd user Admin and 123 pwd.
3)      On left hand side upper corner select the Service provider Connection as shown in digrame.
4)      Select GSM/GPRS modem connection. Before starting this step just connect your Mobile/Modem to system and then click on install. Ozeki-Ng automaticlly search your modem and will install the modem. Now we have done almost sending sms setting for ozeki-ng.
5)      You can add the different user also for that refere this link
Now we are ready to send the sms. We will move to some steps to connect with this ozeki-ng sms getway from our application.
Using Coading:
1)      Create your website in C#.
2)      Design the send sms page like bellow.
3)      Write the following code in sentbutton_click event.

protected void btnsend_Click(object sender, EventArgs e)
            if (txtmono.Text!=String.Empty && txtmsg.Text!=String.Empty)
                txtmono.Text = String.Empty;
                txtmsg.Text = String.Empty;
                lblmsg.Visible = true;
                lblmsg.Text = "Message Sented";
                lblmsg.Visible = true;
                lblmsg.Text = "Not Sented";
        catch (Exception)

 private void SendMessage()
        string _msg = txtmsg.Text;
        //we creating the necessary URL string:
        string ozSURL = ""; //where Ozeki NG SMS Gateway is running
        string ozSPort = "9501"; //port number where Ozeki NG SMS Gateway is listening
        string ozUser = HttpUtility.UrlEncode("admin"); //username for successful login
        string ozPassw = HttpUtility.UrlEncode("abc123"); //user's password
        string ozMessageType = "SMS:TEXT"; //type of message
        string ozRecipients = HttpUtility.UrlEncode("+91" + txtmono.Text); //who will get the message
        string ozMessageData = HttpUtility.UrlEncode(_msg); //body of message

        string createdURL = ozSURL + ":" + ozSPort + "/httpapi" +
            "?action=sendMessage" +
            "&username=" + ozUser +
            "&password=" + ozPassw +
            "&messageType=" + ozMessageType +
            "&recipient=" + ozRecipients +
            "&messageData=" + ozMessageData;
        HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(createdURL);

        //Get response from Ozeki NG SMS Gateway Server and read the answer
        HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
        System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
        string responseString = respStreamReader.ReadToEnd();

  In this way you can implement the sms sending facility in your web site. It’s very easy to implement and manage. Any clarification drop me mail