Hi,
As one solution is posted by nirav using way2sms.
Now I describe you the process from 1st step.
Just reach to a sms gateway provider(some companies offer this service with various packages).
And they provide the api integration code(sample code as they need, many times it is a http request.)
Now the difference between way2sms and other paid sms gateway,
vary simple if you paid then there is something extra which not in free. There are various packages, so it depends.
some of are:
1) you cant bulk sms in free using way2sms.
2) sms delivery success ration.
3) Delivery report.
4) A vary important, you cant send promotional sms on DND number's. if you did using free service.Them you will be fined.
5) About DND ,using paid service there are two type of plan
a) message only sent/deliverd to non dnd number(the sms gateway filter itself & generate report also for you.)
secon one :
b) Including DND :- you can send informative sms (pre-approved) or some kind of notice eg: monthly paying alert etc. But in this there are various formalities are depends on condition.
Code sample one of them which I used successfully.
public void newapicall(string mobile, string message)
{
string username = "hemant";
string password = "yourpassword";
string newsender = "hemant";
string domian = "smsgatewayurl.com";
string baseurl = "http://" + domian + "/sendhttp.php?user=" + username + "&password=" + password + "&mobiles=" + mobile + "&message=" + message + "&sender=" + newsender;
WebClient client = new WebClient();
Stream data = client.OpenRead(baseurl);
StreamReader reader = new StreamReader(data);
string s = reader.ReadToEnd();
data.Close();
reader.Close();
}
Thanks
Hemant Singh Rautela
My Blog: Developers Blog[
^]