CLIENT LOGIN

EMPLOYEE LOGIN

SMS Marketing
EMAIL Marketing
SHORCODE Service
VOICE GREETING Service
VIRTUAL Number

Api Codes

Send SMS :

http://bulksmsindia.mobi/sendurlcomma.aspx?user=profileid&pwd=password&senderid=ABC&

mobileno=9999999989,9999999990,9999999991&msgtext=Hello&smstype=0/4/3

*smstype : 0 = Transactional Template,3 = Transactional Optin,4 = Promotional,13=Promotional-BSNL (use only for currency plan)

ASP Code Sample:(Send SMS)

sResponse = SMSSend(pno, message )
If right(sResponse,15) = "Send Successful" Then
'write your code here
End If

Function SMSSend (strPh,strMsg)

Dim msgResponse
Dim strRequest
Dim strUrl
msgResponse = ""

strPh=right(strPh,10)
If not IsNumeric(strPh) Or len(strPh) <> 10 Then
msgResponse = "Enter valid Mobile Number."
End If
If strMsg = "" Then
msgResponse = "Enter text message."
End If

strUrl = "http://bulksmsindia.mobi/sendurlcomma.aspx?"
strRequest = strRequest+"user=profileid"
strRequest = strRequest+"&pwd=pass"
strRequest = strRequest+"&senderid=senderid"
strRequest = strRequest+"&mobileno="+strPh
strRequest = strRequest+"&msgtext="+Server.URLEncode(strMsg)

strUrl = strUrl+strRequest

If msgResponse = "" Then
Dim oXML
Dim sPage
Err.Clear
On Error Resume Next
Set oXML = Server.CreateObject("Msxml2.XMLHTTP")
oXML.Open "get", strUrl , false
oXML.Send
msgResponse = oXML.ResponseText
Set oXML = Nothing
End If

SMSSend = msgResponse

If Err.Number <> 0 Then
SMSSend = "Problem on sending sms : "& Err.Description
End If

End Function

Check Balance:

sResponse = SMSSend(pno, message )
If right(sResponse,15) = "Send Successful" Then
                            'write your code here
End If

Function SMSSend (strPh,strMsg)

           Dim msgResponse
           Dim strRequest
           Dim strUrl
                            msgResponse = ""

                strPh=right(strPh,10)
           If not IsNumeric(strPh) Or len(strPh) <> 10 Then
    msgResponse = "Enter valid Mobile Number."
           End If
If strMsg = "" Then
                msgResponse = "Enter text message."
End If
                strUrl = "http://bulksmsindia.mobi/sendurlcomma.aspx?"
                strRequest = strRequest+"user=profileid"
                strRequest = strRequest+"&pwd=pass"
                strRequest = strRequest+"&senderid=senderid"
                strRequest = strRequest+"&mobileno="+strPh
                strRequest = strRequest+"&msgtext="+Server.URLEncode(strMsg)
strUrl = strUrl+strRequest

           If msgResponse = "" Then
                Dim oXML
                Dim sPage
                Err.Clear
                On Error Resume Next
                Set oXML = Server.CreateObject("Msxml2.XMLHTTP")
                oXML.Open "get", strUrl , false
                oXML.Send
                msgResponse = oXML.ResponseText
                Set oXML = Nothing
           End If
           SMSSend = msgResponse
           If Err.Number <> 0 Then
             SMSSend = "Problem on sending sms : "& Err.Description
           End If
End Function

ASP .NET (C#) Code Sample:(Send SMS)

using System; using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;

using System.IO;
using System.Net;

public void SMSSend()
{
           WebClient client = new WebClient();
      string baseurl = "http://bulksmsindia.mobi/sendurlcomma.aspx?user=profileid&pwd=xxxx&senderid=ABC&mobileno=9911111111&msgtext=Hello";
      Stream data = client.OpenRead(baseurl);
      StreamReader reader = new StreamReader(data);
      string s = reader.ReadToEnd();
      data.Close();
      reader.Close();
}

Java Code Sample:(Send SMS)

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Date;

public class SMSSend {
public static void main(String[] args)
{ try {
Date mydate = new Date(System.currentTimeMillis());

URL url = new URL("http://bulksmsindia.mobi/sendurlcomma.aspx?user=profileid&pwd=xxxx&senderid=ABC&mobileno=9911111111&msgtext=Hello);
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
conn.setRequestMethod("GET");
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setUseCaches(false);
conn.connect();
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
StringBuffer buffer = new StringBuffer();
while ((line = rd.readLine()) != null)
{
buffer.append(line).append("\n");
}
System.out.println(buffer.toString());
rd.close();
conn.disconnect();
}catch(Exception e)
{e
.printStackTrace();
}
}}
Note: Required javax.servlet.jar and jdom.jar to execute ( downloadable from internet,add to
classpath ).

PHP Code Sample:(Send SMS)

// Urlencode the message you want to send. This is the change I have done
$msg=urlencode('Your Message Goes Here');

//urlencode the senderid
$senderid=urlencode('Your Sender Id Goes Here');

// prepare the url
$url = "http://bulksmsindia.mobi/sendurlcomma.aspx?user=xxxx&pwd=xxxx&senderid=$senderid&mobileno=xxxxx&msgtext=$msg";

// using try and catch to catch errors if any
try{

//creating the curl object
$ch = curl_init($url);

//if the curl_init returns false than throw exception
if (FALSE === $ch){
throw new Exception('failed to initialize the new curl object');
}

/* setting the curl option for more information on this please reffer to
* link : http://php.net/manual/en/function.curl-setopt.php
* */ curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $msg);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

//executing the curl statement and storing the result in $p_result
$p_result = curl_exec($ch);
// echo out the response got from the sms gateway api
echo ($p_result).'


'; // if the response is false, than throw the exception and redirect where you want to redirect
if (FALSE === $p_result) {
throw new Exception(curl_error(), curl_errno());

// Do here whatever you want to do

//close the curl connection object
curl_close($ch);
}
// else the sms was successfully sent and redirect where you want to redirect
else{
//close the curl connection object
curl_close($ch);
//Do here whatever you want to do
}
}
catch(Exception $e)
{
trigger_error(sprintf('Curl failed with error #%d: %s',$e->getCode(), $e->getMessage()),E_USER_ERROR);
}

OUR CLIENTS

OUR TESTIMONIALS