Now the Chinese network is built to register a own account,Then there is the code case, and the corresponding download jar package addressThe code is as follows:public class Message {public static void Main (string[] args) {try {New Message (). SendMessage ();} catch (HttpException e) {E.printstacktrace ();} catch (IOException e) {E.printstacktrace ();}}public void SendMessage () throws HttpException, ioexception{HttpClient client = new HttpClient ();Postmethod post = new Postmethod ("http://gbk
(new namevaluepair[] {new Namevaluepair ("account", account), new Name Valuepair ("pswd", pswd), New Namevaluepair ("mobile", mobile), New Namevaluepair ("Needstatus ", String.valueof (Needstatus)), New Namevaluepair (" MSG ", msg), New Namevaluepair (" Extno ", E Xtno),}); int result = ClienT.executemethod (method); if (result = = HTTPSTATUS.SC_OK) {InputStream in = Method.getresponsebodyasstream (); Bytearrayoutputstream BAOs = new Bytearrayoutputstream ();
Original: Java call Fetion interface free SMS sent to the other phoneSource code: Http://www.zuidaima.com/share/1550463460084736.htmfetion Send Message limit (mobile users)1. Use Fetion to add a friend to the other side to send fetion (to achieve this condition fetion no charge)The weekendgreetings= in the 2.FetionConfig configuration file is to send another profile nameIf the weekendgreetings= weekend gree
Programmer: Yang xinghui implements text message reply in java** Date:** Time: 05:24:07 pm** Text message sending*/Import javax. wireless. messaging .*;Import javax. microedition. io .*;Public class Sender {Public Sender (){}/* Input text content, phone number, and port number to send the text message. The result is true or false */Public static boolean send (String content, String phonenumber,String smsPort ){Boolean result = true;Try {String address
Programmer: Yang Xinghui implements text message reply in java** Date:** Time: 05:24:07 PM* * Text message sending*/Import javax. wireless. messaging .*;Import javax. microedition. io .*;Public class Sender {Public Sender (){ }/* Input text content, phone number, and port number to send the text message. The result is true or false */Public static boolean send (String content, String phonenumber,String smsPort ){Boolean result = true;Try {String addre
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.