Smsby7 Technologies
Zo18 Marketing Solution, Bulk Sms Provider  
Home Bulk SMS Email Marketing Lead generation Database List About Contact Smsby7 Technologies
Smsby7 Technologies
Bulk SMS Offered
[ 24*7 Services Assistance ]
dsl MS Excel SMS Plugin
dsl Developer API Code
dsl 2way Bulk SMS
dsl Create an Account
dsl Contacts Database NEW
dsl Our Services
dsl Payment Options
dsl Help / Suport
Smsby7 Technologies
Home > Download >Developer API Code
Bulk SMS Offered
VB.NET Code | C#.NET Code | PHP Code
Developer Courses
C#.Net API Code


using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Configuration;
using System.Net;
using System.Text;
using System.Net;

public string SendSMS(string User, string password, string Mobile_Number, string Message,


// ERROR: Optional parameters aren't supported in C#

string MType)
string stringpost = "User=" + User + "&passwd=" + password + "&mobilenumber=" + Mobile_Number + "&message=" + Message + "&MTYPE=" + MType;

  string functionReturnValue = null;
  functionReturnValue = "";

    HttpWebRequest objWebRequest = null;
    HttpWebResponse objWebResponse = null;
    StreamWriter objStreamWriter = null;
    StreamReader objStreamReader = null;

         string stringResult = null;
         objWebRequest = (HttpWebRequest)WebRequest.Create("(http://Domain name/WebserviceSMS.aspx");          

                  //domain name:Ex:(
                  objWebRequest.Method = "POST";

// Response.Write(objWebRequest)
// Use below code if you want to SETUP PROXY.
//Parameters to pass: 1. ProxyAddress 2. Port
//You can find both the parameters in Connection settings of your internet explorer.
// If You are In the proxy Then You Uncomment the below lines and Enter IP And Port Number
//System.Net.WebProxy myProxy = new System.Net.WebProxy("", 6666);
//myProxy.BypassProxyOnLocal = true;
//objWebRequest.Proxy = myProxy;

         objWebRequest.ContentType = "application/x-www-form-urlencoded";
objStreamWriter = new StreamWriter(objWebRequest.GetRequestStream());          

         objWebResponse = (HttpWebResponse)objWebRequest.GetResponse();
         objWebResponse = (HttpWebResponse)objWebRequest.GetResponse();
         objStreamReader = new StreamReader(objWebResponse.GetResponseStream());
         stringResult = objStreamReader.ReadToEnd();
         return (stringResult);
         catch (Exception ex) {
         return (ex.ToString());
                  finally {
                  if ((objStreamWriter != null)) {
         if ((objStreamReader != null)) {
    objWebRequest = null;
    objWebResponse = null;
protected void btnsubmit_Click(object sender, System.EventArgs e)
string str = null;
str = SendSMS(User.Value, Passwd.Value, mobilenumber.Value, message.Value,"N");

Smsby7 Technologies
Business Directory Free Indian Mobile Data Email Data Free SMS Services Provider World DatabaseCompanies Data Free World Mobile Data Industrial dataFree Mobile Data Car Woner Data Credit card holders Data CapitalBuilders Architectsbusiness man databaseBusiness Email dataDelhi NCRData provider companyIndustrial data listStudents database freebulk Sms service providerFree business directorybusiness directory listingCredit card holdersBusiness Credit card holders dataCar woner data freeEmail Data list freeOnline Free Email Dataworld mobile dataCompanies dataworld email dataIndustrial data freeFree Mobile DataIndian business directory Free
Suggestions? Complaints? Feedback? Requests? We want to hear it all!
  Copyright © 2010 Design By Maxus Web Technology. All rights reserved