移動和聯通介面 傳送簡訊 C

2021-05-23 21:21:45 字數 1053 閱讀 1173

using system;

using system.data;

using system.configuration;

using system.web;

using system.web.security;

using system.web.ui;

using system.web.ui.webcontrols;

using system.web.ui.webcontrols.webparts;

using system.web.ui.htmlcontrols;

using system.text;

using system.net;

using system.io;

using cn.sh.unicom.groupsms;

///

/// mobmsg 的摘要說明

///

public class mobmsg

public mobmsg(string mobnum, string mobmsg)

public void sendmsg()

public void tounicom()

catch

mysessionid = value1.sessionid;//'得到sessionid

sendbatchsms(binding, mysessionid, this._mobmsg, "companycode");//companycode為企業代號1112345

value1 = binding.logout(mes1);

}public bool checktype(string mobilenum)

}在呼叫聯通的介面的時候還要新增乙個 http://groupsms.unicom.sh.cn/websms/services/smwsimpl?wsdl  webservice

然後我們可以在其它頁面使用

mobmsg msg = new mobmsg("要傳送資訊的手機號碼","要傳送的內容");

msg.sendmsg();

這樣就可以了

C 簡訊傳送介面原始碼

簡訊傳送介面原始碼 註冊,登入,改密 判斷傳送是否頻繁 var result issendcaptchatooquick mobile if result 1 result 120 驗證碼 string yzmnum new random next 100000,1000000 tostring 傳...

celery傳送簡訊介面

celery專案中的所有導包位址,都是以celery base dir為基準設定.執行celery命令時,也需要進入celery base dir目錄執行.celery base dir os.path.dirname os.path.abspath file true def send sms c...

celery傳送簡訊介面

celery專案中的所有導包位址,都是以celery base dir為基準設定.執行celery命令時,也需要進入celery base dir目錄執行.celery base dir os.path.dirname os.path.abspath file def send sms code s...