How does it work?
Step 1:
The user needs a specific number to send his messages to SMS gateway. You can use either long code or short code which is provided by your SMS Gateway Provider.
A short code is a 5-6 digit code like 56767. Long code is 10 digit number. It is like mobile number but not the mobile number. It’s called Virtual Mobile Number(VMN).
Step 2:
After receiving SMS from user, SMS Gateway sends the user mobile number and request message details to application server.
Step 3:
Application server generates response for the particular user’s request from server and sends back to SMS Gateway via HTTP API.
Step 4:
SMS gateway forwards the same back to user’s mobile number immediately.
Feature of two way sms:
- It can be used for customer feedback
- Used for customer survey
- Online Voting
- Most of the time this SMS services can be used for customer enquiry
How to integrate two way SMS in your application with ASP.net
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Net;
using System.IO;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Text;
public partial class Twowaysms : System.Web.UI.Page
{
string mobile = “”;
protected void Page_Load(object sender, EventArgs e)
{
mobile = Request.QueryString[“dest_mobileno”].ToString();
Response.Clear();
Response.ClearHeaders();
Response.ContentType = “text/plain”;
Response.Write(“Thanks for your valuable feedback!!! Have a nice day:)”);
Response.End();
SendSMStoCustomer();
}
public void SendSMStoCustomer()
{
string Respond_message = “Test message”;
string dest_mobileno = “XXXXXXXXX”;
//To send SMS via transactional route
WebClient client = new WebClient();
string baseurl = “http://123.63.33.43/blank/sms/user/urlsmstemp.php?username=xxxx&pass=xxxx&senderid=xxxx&dest_mobileno=” + dest_mobileno + “&message=” + Respond_message + “&response=Y”;
Stream data = client.OpenRead(baseurl);
StreamReader reader = new StreamReader(data);
string s = reader.ReadToEnd();
data.Close();
reader.Close();
}
}
Get more details on http://kapsystem.com/bulksms/index.htm
Need Demo click on http://kapsystem.com/freedemo.php
For further assistance mail to info@kapsystem.com or call on +91 97380 10000