Intigrate SMS Gateway to ASP.NET Website

Before going to intigrate sms gateway to our asp.net website we need to purchese sms gateway from venders.

Now a days there several providers for sms gateway.so based on your requirement you can go head.

Now hear we have a two type of sms are there they are Promotional and Transactional.
 
Both are same intigration pattaern.
 
Once you puchesed the api from vender u can use beloow code for intigrate sms gateway for our asp.net website. 
  1. public class message {  
  2.     public string Conifrmation {  
  3.         set;  
  4.         get;  
  5.     }  
  6. }  
  7. public message SendMessage(string mobileNumber, string msg) {  
  8.     message msge = new message();  
  9.     try {  
  10.         string number = 123456789;  
  11.         string msges = "abcdefghijklmnopqrlstuvwxyz";  
  12.         //username and password u can get from vender    
  13.         string password = "abcd";  
  14.         string SenderID = "abcd";  
  15.   
  16.         //API URL Provided  FROM Vender    
  17.   
  18.         string strUrl = "http://domine.co.in/pushsms.php?username=useranme &password=" + password + "&sender=" + SenderID + "&message=" + msges + "&numbers=" + number;  
  19.         WebRequest request = HttpWebRequest.Create(strUrl);  
  20.         HttpWebResponse response = (HttpWebResponse) request.GetResponse();  
  21.         Stream s = (Stream) response.GetResponseStream();  
  22.         StreamReader readStream = new StreamReader(s);  
  23.         string dataString = readStream.ReadToEnd();  
  24.         response.Close();  
  25.         s.Close();  
  26.         readStream.Close();  
  27.         msge.Conifrmation = "Message Delivered To " + mobileNumber;  
  28.     } catch (Exception ex) {  
  29.         msge.Conifrmation = "Message Not Delivered To " + mobileNumber;  
  30.     }  
  31.     return msge;  
  32. }