Program | problem with Asiainfo CMPP1.22API for example (Java)
Aiismg.jcmppapi Bag
Contains class Cmppapi, CMPPDELIVERRESP, Cmppqueryresp etc.
It's no different than a normal procedure.
Cmppapi Pcmppapi = new Cmppapi ();
if (Pcmppapi.initcmppapi (".. /config/javacmppc.ini ")!= 0) {
if (noutput = = 1) {
System.out.println ("Fail to call initcmppapi!");
}
System.exit (1);
}
Cmppsendsingle includes parameter service code, accept phone,
Pure Java Implementation NetEase mailbox send mailA mail-sending program based on Java development. Because the use of NetEase's SMTP server, so the sender's mailbox requirements NetEase mailbox. Bo main parental test 126 mailbox and 163 mailbox is valid, yeah mailbox did not test.
Prerequisite Preparation
you need to import a jar package linkMail.jar:https://
case.Then I will add the startup parameter-xmx256m, and this will be done.Also: the management of Java heap-garbage collection mentioned a few points, very good, may be used as the principle for writing a program:(1) do not try to assume the time when the garbage collection occurred. This is all unknown. For example, a temporary object in a method becomes useless after the method is called, and its memory can be released.(2)
To realize the mobile phone to send information function must first have the following conditions
1. There is a WSDL file. Here is the download
http://d.download.csdn.net/down/2631194/zhouxiaoxiong828788
2.tomcat and JDK are essential, the version generally in 5.0 and more than 1.5
3.Eclipse Java EE IDE for WEB developers
Start creating the project now:
1. New Dynamic Web project name:
cmpp Send long letter, I can achieve the CMPP2 long letter implementation (Java version)
I resigned after the Yidong engaged in text messaging and mass work, from Beijing experts where learned to send text messages, the beginning can only send a short letter, is not more than 140 characters, if more than I will split
sent to any mailbox (to achieve the bulk delivery of advertising mail)4. Mass or send SMS separately, support two kinds of third-party SMS quotient Interface5. Spring AOP Transaction Processing6. MD5 Encryption SHA encryption (login password with this encryption) interface to encrypt the identity check7. Database connection Chi Ali Druid. Druid has significant a
());//ePRO Returns the number of the order//3. Send SMS, next blog to introduce the function of sending SMSSYSTEM.OUT.PRINTLN ("----success!! ----"); } Else{System.out.println ("----FALSE!!! ----"); } }}From the information returned by the R6_order parameter is stored in the order number, the R8_MP parameter is the user's mailbox and phone, the first mailbox is the second phone, separated by commas, so
Buy Classic Java IDE myeclipse send Java Classic best-selling book: Basic version of the book Yas Block masterpiece "Effective Java Chinese version (2nd edition)", buy advanced version of the programmer must book "Java Programming Ideas (4th edition) [Thinking in
Java is super simple to send emails (dynamic control of the number of recipients), java sends emails
Email sending implementation
The following rack packages need to be introduced in advance, the most important rack package is jodd-3.7 this
Above frame package: http://pan.baidu.com/s/1kVs7Tyv extraction password: h22x
A new utilcategory is created, in which ema
name of the attachmentContainer.addbodypart (Filebodypart); } } PrivateInternetaddress[] Getreceiverlist ()throwsaddressexception {ArrayListNewArraylist(); for(inti = 0; i i) {if(Receiver[i].matches (Mail_address_regex)) {Tolist.add (Newinternetaddress (Receiver[i])); } } return(internetaddress[]) Tolist.toarray (Newinternetaddress[tolist.size ()]); }}Examples of UseString host = "168.xx.xx.xx";//address of the mail serverString subject = "Subject of sending mail"; String S
How to use java to simulate ajax data to send requests and java to simulate ajax data
Case 1:
import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; import org.apache.commons.httpclient.params.HttpMethodParams; import java.io.*; public class HttpClientTutorial { private static String url = "http://10.129.39.149:8090
Before the internet has seen others summed up the use of Java programs to send mail, so they come down to practice, to learn some of their experiences summed up.First of all, we need to use two jar packages here:Need friends can go online to csdn a similar website to findBy the way, the test case is pasted out, there are some detailed comments, the next will be reminded to write a demo of the time we have s
I do the mobile phone to send text messages, is based on the interface provided by others to do, the interface content is as follows:
SMS Platform Interface Description 1, overview 1.1 Interface Description
Each system needs to call this interface when sending text messages. 1.2 interface protocols and data formats
The SMS Platform interface adopts HTTP transmiss
//Send SMS features the following is the tool class exception return 0 Send SMS failure can be result==0 to judge then return failure information If successful, return the validation code information can save session and set session time SESSION.S Etmaxinactiveinterval (60*5); Set session time post-validation can g
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.