联通彩E接入开发包
发表于:2007-07-04来源:作者:点击数:
标签:
import com.clvsoft.message.umax.client.IMAPPushSubmit; import com.clvsoft.message.umax.client.IMAPPushSubmitResFactory; import com.clvsoft.message.umax.URLCache; import com.clvsoft.message.umax.SPCache; import com.clvsoft.message.umax.Util
import com.clvsoft.message.umax.client.IMAPPushSubmit;
import com.clvsoft.message.umax.client.IMAPPushSubmitResFactory;
import com.clvsoft.message.umax.URLCache;
import com.clvsoft.message.umax.SPCache;
import com.clvsoft.message.umax.Util;
import
java.util.Properties;
public class IMAPPushSubmitTester {
public void dos(){
IMAPPushSubmit submit=new IMAPPushSubmit();
submit.setConditionCode("9007000702");
submit.setConditionType(IMAPPushSubmit.SUB
MIT_BYSUBSCRIPTION);
submit.setFeeCode("9007000702");
submit.setFrom("13300011111<13300011111@sina.com>");
submit.setMultiPart("http://www.flybirdbbs.com/aspbanner/upload-image/BannerPic_35.gif");
submit.setSendType(IMAPPushSubmit.SUBMIT_IMAP);
submit.setStartTime(Util.getTimeStamp(0));
submit.setEndTime(Util.getTimeStamp(60));
submit.setSubject("HELLO");
submit.setThirdPartyPayPhone("13300011111");
submit.setTo("13300011111");
submit.setContent("Hello");
try {
submit.de
bug(true);
submit.submit();
}
catch (Exception ex) {
ex.printStackTrace();
}
}
public static void main(String[] arg){
PriSystem.call();
IMAPPushSubmitTester mail=new IMAPPushSubmitTester();
mail.dos();
}
}
原文转自:http://www.ltesting.net