Joke Collection Website - Public benefit messages - What are the basic knowledge of developing SMS with JAVA?
What are the basic knowledge of developing SMS with JAVA?
URL url = null
string CorpID = " * * * * * * * * * "; //Account name
string Pwd = " * * * * * * * * * "; //password
string send _ content = URL encoder . encode(content . replace all(" & lt; br/>、“)、“GBK”); //Send content
URL = new URL("/SDK 2/batch send 2 . aspx? CorpID = "+CorpID+" & amp; Pwd = "+Pwd+" & amp; Mobile phone = "+mobile phone+"&; content = "+send _ content+" & amp; Cell = & ampsend time = "+send _ time);
BufferedReader in = nullint inputLine = 0; Try {
System.out.println ("The mobile phone number that started sending short messages is"+mobile ");
in = new buffered reader(new InputStreamReader(URL . openstream()));
InputLine = new integer (in.readLine ()). int value();
Catch (exception e) {
System.out.println ("Network abnormal, sending SMS failed!" );
input line =-2;
}
System.out.println ("Return value after sending SMS:"+InputLine); Return to inputLine
}
- Previous article:How to thank friends for sending flowers when opening a shop?
- Next article:How to delete application permissions?
- Related articles
- What kind of greetings will you send when your ex is married? Say it briefly.
- How many words is a short message limited to?
- Excuse me, I can't open the URL link in the SMS of iphone6s plus. How to set it?
- What is the failure of sending text messages?
- How to pay the arrears of Yuetong Card online?
- There are a few dollars left in the mobile phone card. How can I open QQ service? Can I open an annual fee service?
- Unicom is in arrears and can't send text messages.
- Pay attention to rest information.
- Pay attention to the heart-warming words of the epidemic
- Is it safe not to open SMS for time deposit?