如何在asp.net中使用way2sms和fullonsms发送短信 [英] how to send sms using way2sms and fullonsms in asp.net

查看:68
本文介绍了如何在asp.net中使用way2sms和fullonsms发送短信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI

如何在asp.net中使用way2sms和fullonsms发送短信

HI
how to send sms using way2sms and fullonsms in asp.net

推荐答案

查看下面的教程:

使用ASP.Net使用Way2SMS和FullOnSMS帐户向移动号码发送免费和批量短信 [ ^ ]
check below tutorial :
Send free and bulk SMS to mobile numbers using Way2SMS and FullOnSMS accounts using ASP.Net[^]


参考此网站:



1)使用Full On Sms从ASP.NET发送短信



2)< a href =http://www.aspsnippets.com/Articles/Send-free-and-bulk-SMS-to-mobile-numbers-using-Way2SMS-and-FullOnSMS-accounts-using-ASPNet.aspx>发送免费和批量短信到移动nu mbers使用Way2SMS和FullOnSMS帐户使用ASP.Net


尝试以下代码获取way2sms。







Try below code for way2sms.



protected void Page_Load(object sender, EventArgs e)
{
    List<string> nos = new List<string>();
    nos.Add("9320xxxxxx");
    nos.Add("9940xxxxxx");
    nos.Add("9789xxxxx");
    foreach (string no in nos)
    {
        send("9840xxxxxx", "xxx", "Sending sms", no);
    }
}
 
public void send(string uid, string password, string message, string no)
{
    HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password + "&msg=" + message + "&phone=" + no + "&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();
}


这篇关于如何在asp.net中使用way2sms和fullonsms发送短信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆