.Net C# Development

Sending SMS

public void SendSMS(string reciever, string message, string countrycode)
        {
            string encodedmessage = HttpUtility.UrlPathEncode(message);
            string url = "http://sms.kyoto-tech.com/sendurlcomma.aspx?user=******pwd=******&senderid=DELMA&mobileno=" + reciever + "&msgtext=" + encodedmessage + "&Countrycode=" + countrycode;
            WebRequest request = HttpWebRequest.Create(url);
            WebResponse response = request.GetResponse();
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string urlText = reader.ReadToEnd(); // it takes the response from your url. now you can use as your need 

        }

Leave a Reply

Your email address will not be published. Required fields are marked *