Click here to Skip to main content
15,742,619 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The remote server returned an error: (503) Server Unavailable.

 using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
using System.Net;
using System.IO;

public partial class Default4 : System.Web.UI.Page
    protected void Page_Load(object sender, EventArgs e)


    public void sendSMS(string uid, string password, string message, string no)
        HttpWebRequest myReq =
        (HttpWebRequest)WebRequest.Create("" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&provider=way2sms");

        HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
       // request.Proxy = GlobalProxySelection.GetEmptyWebProxy(); 
        System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
        string responseString = respStreamReader.ReadToEnd();

    protected void Button1_Click(object sender, EventArgs e)
            sendSMS("8985389809", "1435", txtmsg.Text, txtno.Text);
            ScriptManager.RegisterStartupScript(this, this.GetType(), "popup", "alert('sms sent successfully...');", true);

please help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900