how to send sms in c #

Posted by Sahoo under C# on 4/19/2012 | Points: 10 | Views : 3203 | Status : [Member] | Replies : 9
Hi,

How to send sms using c#.Is there any tool available for it.




Responses

Posted by: Sunny4989 on: 4/19/2012 [Member] Starter | Points: 25

Up
0
Down
Refer the below link

http://www.codeproject.com/Articles/19023/Sending-SMS-using-NET

------------------------------------------------
Learn throughout life

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

Posted by: Dotnetrajanikanth on: 4/19/2012 [Member] Starter | Points: 25

Up
0
Down
http://www.nowsms.com/discus/messages/485/21018.html

Send SMS and MMS

____________
www.flickr.com/photos/psdesigner/

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

Posted by: Sunny4989 on: 4/19/2012 [Member] Starter | Points: 25

Up
0
Down
Include two namespaces in your page.

1)using System.Net;
2)using System.IO;

--Then copy below send function into your page.

public void send(string uid, string password, string message, string no)
{
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}

--Then double click on send button
protected void Button1_Click(object sender, EventArgs e)
{
//only change yourmobileno and //yourpassword below
send("yourmobileno", "yourpassword", TextBox2.Text, TextBox1.Text);
//TextBox2.Text for message and TextBox1.Text //for reciever no
}


------------------------------------------------
Learn throughout life

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

Posted by: Dotnetrajanikanth on: 4/19/2012 [Member] Starter | Points: 25

Up
0
Down
Can I know For what purpose you are using it. so that i can suggest a better one..

____________
www.flickr.com/photos/psdesigner/

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

Posted by: Sakthi.Singaravel on: 4/19/2012 [Member] Silver | Points: 25

Up
0
Down
See this article..

http://www.codeproject.com/Articles/20064/How-to-Send-SMS-Messages-from-C-using-an-SQL-Datab

Regards,
Singaravel M

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

Posted by: Sabarimahesh on: 4/19/2012 [Member] Bronze | Points: 25

Up
0
Down
http://www.smsco.it/en/sms_tutorials/sms_from_c_sharp.jsp

Download the tutorial and study

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

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

Posted by: Sabarimahesh on: 4/19/2012 [Member] Bronze | Points: 25

Up
0
Down

Sahoo ..

Sakthi.Singaravel posted link also Good

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

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

Posted by: Sahoo on: 5/1/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Dotnetrajanikanth

I want to use it in demo project for testing purpose


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

Posted by: Szurcsii on: 3/31/2014 [Member] Starter | Points: 25

Up
0
Down
Hi!

If you wish to send sms in c# you should try to use an sms gateway.
You can find detailed guide and and example in the following website: http://ozekisms.com/index.php?owpn=315&info=c_sharp_sms_example

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

Login to post response