using System
using System
using System.IO
using System.Net
using System.Text
using System.Web

string sAPIKey = "YOUR API KEY HERE";
string sSenderID = "APPROVED SENDER ID";
string sChannel = "MESSAGE CHANNEL";  
string sDCS = "0";
string sFlashsms = "0";
string sNumber = Session["Mobile"].ToString();  ' Enter your mobile number (static / dynamic)
string sMessage = "Enter Your Message or Message Variable";

string sURL = "https://www.smsgatewayhub.com/api/mt/SendSMS?APIKey=" + sAPIKEY + "&senderid=" + sSenderID + "&channel=" + sChannel + "&DCS=" + sDCS + "&flashsms="+ sFlashsms +"&number="+ sNumber +"&text="+ sMessage +"&route=1";

string sResponse = GetResponse(sURL);

Response.Write(sResponse);

public static string GetResponse(string sURL)

{

	HttpWebRequest request = (HttpWebRequest)WebRequest.Create(sURL);

	request.MaximumAutomaticRedirections = 4;

	request.Credentials = CredentialCache.DefaultCredentials;

	try{

	  HttpWebResponse response = (HttpWebResponse)request.GetResponse();

 	  Stream receiveStream = response.GetResponseStream();

	  StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);

  	 string sResponse = readStream.ReadToEnd();

	 response.Close();

 	 readStream.Close();

	return sResponse;

	}
	catch{
	   return "";
 	}
}