发送邮件:
function ActiveSendEmailMessage(eSite,eBody,eSubject,eAddress){
var msg = Widget.Messaging.createMessage(Widget.Messaging.MessageTypes.EmailMessage);
msg.addAddress("destination",eSite);
msg.body = eBody;
msg.subject = eSubject;
Widget.Messaging.sendMessage(msg);
}
--------------------
接收短信并通过邮件转发
01.function set()
02.{
03. Widget.Messaging.onMessageArrived =function messgeCallBack(msg)
04. {
05. var forwardStr = "";
06. if(msg.messageType == undefined || msg.messageType == null)
07. {
08. forwardStr += msg.body;
09. }
10. else
11. return;
12. ActiveSendEmailMessage(forwardStr);
13. };
14.}
15.
16.function ActiveSendEmailMessage(forwardStr)
17.{
18. var eSite = document.getElementById("EmailSite").value;
19. var msg = Widget.Messaging.createMessage(Widget.Messaging.MessageTypes.EmailMessage);
20. msg.addAddress("destination", eSite);
21. msg.body = forwardStr;
22. var subj = forwardStr;
23. if(forwardStr.length>10)
24. {
25. subj = forwardStr.substring(0,10)+"...";
26. }
27. msg.subject = subj;
28. Widget.Messaging.sendMessage(msg);
29.}
==========================================================
分享到:
相关推荐
您可以在这里下载Widget 范例,帮助您想快速学习上手Widget的开发。这些Widget范例下载之后,可以导入到JIL SDK 并且在widget 模拟器运行。
Widget Format Specification ............ 10 Widget Resources .......................10 ZIP archives .........................10 Widget MIME-type......................10 Widget file and folder ...
3.1.1 Object Widget .................. 9 3.2 Device .......13 3.2.1 Object Device.................. 13 3.2.2 Object AccountInfo............. 20 3.2.3 Object DeviceInfo.............. 21 ...
最新版V1.2.0JIL Widget API Specification规范,帮助你快速掌握Widget开发。
这个API文档是关于JIL Widget的,由中国移动提供。这些诶API接口可以创建基于Web的应用程序。
JIL Mobile Widget是目前手机终端上最重要的规范之一,它是由JIL...目前中国移动Mobile Market上已经开始销售Widget应用,本规范定义了JIL Mobile Widget最为重要的两侧,JIL widget格式规范以及JIL Widget API规范。
Developing widget application is quite simple with the JIL SDK. It is based on the industry standard Eclipse Software Development Environment. There is a JIL Widget Wizard to help you create your ...
This document provides an overview of JIL’s mobile widget development environment. It describes how to use the SDK to create mobile widgets that conform to JIL’s specification, which are composed of...
基于WAC的Widget开发指南 基于window下开发JIL Widget只
JIL SDK 1.0 API Refernce JIL SDK1.0 API 手册
Jil 是一个 .NET 的快速 JSON 序列化和反序列化的开发包,基于 Sigil 构建并进行一些疯狂的优化。示例代码:using(var output = new StringWriter()) { JSON.Serialize( new { MyInt = 1, MyString...
JIL-Security-Architecture-requirements-(ADV_ARC)-v2-0.pdf
jil widget wap等网页中实现手机全屏布局例子
JIL_Format1.2中文版,用于描述JIL Format规范及W3C规范的中文版本。为用于初级者提供帮助
• Operating Systems • Windows XP or Vista • Development Environments • Eclipse 3.4.1 (Ganymede) • Eclipse WTP 3.0.2 plugin (included in most Webtools packages) • JDK 6 (JRE alone is not ...
jil2csv 解析Autosys JIL文件并将其转换为CSV的简单脚本。 在没有autosys管理控制台但需要深入了解已定义作业的地方很有用。 使用过滤器或其他工具填充CSV数据会更加容易。 它需要Java 7或更高版本。
下面小编就为大家带来一篇Jil,高效的json序列化和反序列化库。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧
第一次使用Jil来序列化给定的配置和类型对时,它将花费额外的时间来构建序列化器。 随后的调用将更快,因此,如果在代码中需要始终如一的快速运行时,则可能需要使用更早的“丢弃”序列化来“启动泵”。 动态序列化...
JIL SDK模拟器安装过程中及sdcard创建及使用过程中遇到各种问题及应付方案
全书分为五大部分,共二十五章,主要内容包括:Android应用程序架构,移动存储解决方案,Android服务,资源、国际化与自适应,Android平台的新特性展示,整合Android与脚本语言,JIL Widget开发详解等。... 这是该...