如何使用Intel XDK在iPhone/Android中发送电子邮件? [英] how to send email in iphone/ android using intel xdk?

查看:71
本文介绍了如何使用Intel XDK在iPhone/Android中发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的项目中导入了 EmailComposer Cordova插件.现在,我正在尝试致电

I have imported EmailComposer Cordova plugin in my project. Now i am trying to call

window.plugin.EmailComposer.open({
                to:      ['max.mustermann@appplant.de'],
                cc:      ['erika.mustermann@appplant.de'],
                bcc:     ['john.doe@appplant.com', 'jane.doe@appplant.com'],
                subject: 'Hello World!',
                body:    '<h3>TEST</h3><h2>TEST</h2><h1>TEST</h1>',
                isHtml:  true
            });

发送带有附件的电子邮件的方法.但是我遇到以下错误

method to send email with attachments. But i am getting following error

Cannot read property 'EmailComposer' of undefined 

我不知道为什么会出现此错误.甚至我都不知道EmailComposer插件是否已导入我的项目中.有什么办法可以让我确认一下.

I don't know why this error coming. Even i dont know that EmailComposer plugin is imported or not in my project. Is there any way so i can confirm that.

请提供您的评论.提前致谢.

Please provide your comments. Thanks in advanced.

推荐答案

要确认已安装插件,请在

To confirm that plugin is installed, build your app in IntelXDK and the build log should have a message that "EmailComposer plugin was installed".

Cordova插件也无法在IntelXDK仿真器中进行测试,您必须构建应用并在设备上安装以测试使用插件的应用

Also Cordova plugins cannot be tested in IntelXDK emulator, you haev to build app and install on device to test an app that uses plugins

这篇关于如何使用Intel XDK在iPhone/Android中发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆