Today Bulksms Offer

Send SMS with ASP .net C# Script (C#) SMS messaging is one of the services we offer. Here we'll show you how to use our SMS gateway in (C#). Take the SMS (C#) script code below to send SMS via Developers' Central. Simply register for an account, and you will automatically receive 10 FREE SMS credits to try our service.

Code to send SMS in ASP .net C#:

using System
using System
using System.IO
using System.Net
using System.Text
using System.Web
string sAPIKey= "APIKEY";
string sNumber = Session["Mobile"].ToString();
string sMessage = "Test SMS From Our Company";
string sSenderID = "WEBSMS";
string sURL = "" + sAPIKEY+ "&to=" + sNumber + "&sid=" + sSenderID + "&msg=" + sMessage + "&fl=0?;
string sResponse = GetResponse(sURL);
public static string GetResponse(string sURL)
HttpWebRequest request =
request.MaximumAutomaticRedirections = 4;
request.Credentials = CredentialCache.DefaultCredentials;
HttpWebResponse response = (HttpWebResponse)request
Stream receiveStream = response.GetResp
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
string sResponse = readStream.ReadToEnd();
return sResponse;
return "";

Please note that some of the above code has been supplied to SMSGATEWAYHUB by clients. As such, accuracy is not guaranteed by SMSGATEWAYHUB.