|
如何撰写和使用设备的邮件编辑器发送电子邮件。
- 使用“tizen.email”应用程序的别名的ID
- 仅支持此应用程序的控制操作http://tizen.org/appcontrol/operation/compose
- var emailTo = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/to", ["testTo@mail.com"]);
- var emailCc = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/cc", ["testCc@mail.ru"]);
- var emailSubject = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/subject", ["Email AppControl"]);
- var emailText = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/text", ["Message"]);
- var emailAttach = new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/path", ["/opt/usr/media/Images/image1.jpg", "/opt/usr/media/Images/image2.jpg"]);
- var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/compose", null, null, null, [emailTo, emailCc, emailSubject, emailText, emailAttach]);
-
- tizen.application.launchAppControl(appControl, "tizen.email",
- function() {
- console.log("launch appControl succeeded");
- }, function(e) {
- /* Error handling */
- }, null);
复制代码
|
|