How : to send sms using C#

How to send SMS using C#,sends SMS using c#,window form,window app
Share it:

How to send SMS using C#

How to send SMS using C#
google
In these articles, How to send SMS using C# is a window form application that sends SMS using c# all the window form. in this, we can learn about how to send SMS using the c# window app.

public void send(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");
(HttpWebRequest)WebRequest.Create("put_urlink = "+"UrUsername"+ "&password=" + "UrPassword" + "&sender=" +"UrSenderID"+ "&to=" +no+ "&message=" + message+ "&reqid=1&format={json|text}&route_id=route+id&callback=Any+Callback+URL&unique=1&sendondate=" +"10-10-2014T05:17:52"+"");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}

protected void btn_send_Click(object sender, EventArgs e)
{
 
send(txt_message.Text, txt_mobile.Text);
 
ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true);
 
}

Do you know:-


If you like the tutorial, then please share this tutorial with your friends on social media.
Share it:

C#

Windows Forms

Post A Comment:

0 comments: