send sms to mobile using asp.net

Posted by Naidulaxmi under ASP.NET on 1/9/2014 | Points: 10 | Views : 49062 | Status : [Member] | Replies : 7
Hi Friends,


How to implement send sms to mobile using asp.net.Cold you please give me code.This is most urgent.

Thanks,

appalanaidu


Responses

Posted by: kgovindarao523-21772 on: 1/10/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

I tried before using bellow this link, getting worked
http://www.c-sharpcorner.com/UploadFile/a0178a/experttexting-api-guide/


Thank you,
Govind

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naidulaxmi on: 1/10/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Govind,


Could you please send me source code files.

Thanks,

appalanaidu

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: kgovindarao523-21772 on: 1/10/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

Go through the article first.
To use this web service you need to register first.
Here is my code.
Please mark as answer if you got this.
 Download source file

Thank you,
Govind

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 1/10/2014 [Member] Starter | Points: 25

Up
0
Down
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

Posted by: muralikrishnasurap-12704 on: 1/16/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Laxmi Naidu,

There are some third party provides which is for free you can use,but they will not allow you to send bulk SMS though the service.

Long back I used this please check if it help full to you are not.

 protected void Button1_Click(object sender, EventArgs e)
{
try
{
string uid = "9986555450";
string password = "abc@123";
string message = TextBox2.Text;
string no = TextBox1.Text;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=Fullonsms");
HttpWebResponse myResp = (HttpWebResponse)req.GetResponse();
StreamReader respStreamReader = new StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
Response.Write("sent");


}
catch (WebException ex)
{
ex.Message.ToString();
}


}


Best Regards
Murali Krishna.S

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: 7Daysms on: 2/18/2014 [Member] Starter | Points: 25

Up
0
Down
Send the bulk SMS by using Clouds. It is the effective service, which transfer numerous SMS within a second. For more details visit http://applemedia.co.in/

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Techservices on: 4/16/2017 [Member] Starter | Points: 25

Up
0
Down
how to send sms in asp.net using c#

http://keranservices.blogspot.com/2014/01/how-to-send-sms-in-aspnet-using-c.html

Naidulaxmi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response