我尝试使用way2sms免费邮件服务将此代码从c#创建的网站发送到手机。代码是
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
public partial class message : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + *****88 + "&pwd=" + "****" + "&msg=" + "hello " + "&phone=" + 973*** + "&provider=way2sms");
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
string responseString = respStreamReader.ReadToEnd();
respStreamReader.Close();
myResp.Close();
}
}
我收到错误
异常详细信息:
System.Net.WebException:远程服务器返回错误:(503) 服务器无法使用。在行
HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
有人帮忙吗?