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?

Public static int send SMS (StringMobile, String Content, String send_time) throws MalformedURLException, UnsupportedEncodingException {

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

}