Hi Laxmi Naidu,
First you need to buy SMS Package from various vendors such as http://www.smscgateway.in/.
They will provide u with their API LInk which will send ur Msg to Phone Number.
Code to send SMS is as simple as that:
public void SendSMS(string msg, string MobNo)
{
String sURL;
System.IO.StreamReader objReader;
sURL = @"http://smscgateway.com/messageapi.asp?username=MyUserName&password=MyPassword&sender=Sender&mobile=" + MobNo + "&message=" + msg;
System.Net.WebRequest wrGETURL;
wrGETURL = System.Net.WebRequest.Create(sURL);
try
{
System.IO.Stream objStream;
objStream = wrGETURL.GetResponse().GetResponseStream();
objReader = new System.IO.StreamReader(objStream);
objReader.Close();
}
catch (Exception ex)
{
ex.ToString();
}
}
After buying their Bulk SMS package, they will provide you with UserName, Password and Sender's Details...
http://hashtagakash.wordpress.com/
Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator