Sending SMS using HQSMS API in

To use HQSMS API you need to 1st Register at HQSMS. They will provide you some credit for testing your app. But to send more sms you have to buy credit from them. Below is the code for sending SMS to a user in here I'm using System.Net library from and then obviously HQSMS APIs.

protected void sendButton_Click(object sender, EventArgs e)
            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(new Uri(" Work!&from=HQRoute"));
            HttpWebResponse response = (HttpWebResponse)req.GetResponse();
            System.IO.StreamReader strreader = new System.IO.StreamReader(response.GetResponseStream());
            string deliver = strreader.ReadToEnd();


username = username in HQSMS registration
password =  passowrd needs to be hashed in MD5.  To get a MD5 hash of your password, please go here:

to_phone = destination phone number
from =  source phone number or source user.

Done! Pretty easy huh? Leave some comments if you have any questions about it.


  1. Shyamali DasguptaAug 11, 2011, 1:24:00 AM

    Good one :-)

  2. its not working for me

  3. Hi i am getting ERROR:14. Please help me......

  4. could you please post the full error message?

  5. Hello here you have full list of error codes:


Post a Comment

Popular posts from this blog

html to Word Document Converter using Open XML SDK

How to: Get Top n Rows of DataView in C#