如何发送电子邮件使用邮件作曲家插件在iphone使用手机差距jQuery手机 [英] How to send email using mail composer plugin in iphone using phone gap jQuery mobile
问题描述
我在PhoneGap(corDova)中使用 jQuery Mobile实现了一个应用程序。
我已经下载了 EmailComposer插件发送电子邮件。
我在我的www文件夹中添加了EmailCompser.js,在应用程序的资源文件夹中添加了EmailCompser.h,EmailCompser.m。 b
$ b
我在jQuery mobile中创建了一个按钮。
现在,我想在点击邮件按钮时填充邮件编辑器视图。
< a href =??? data-icon =arrow-rdata-iconpos =leftclass =ui-btn-left> E-MAIL< / a>
写入cordova代码以启动插件,请尝试:
< script type =text / javascript
function openMail(){
var args;
Cordova.exec(null,null,EmailComposer,showEmailComposer,[args]);
}
< / script>
< a href =#onclick =openMail()data-icon =arrow-rdata-iconpos =leftclass =ui-btn-left>电子邮件< / a>
I have implemented an app using jQuery Mobile in PhoneGap (corDova).
I have down loded the EmailComposer plugin for sending email.
I added EmailCompser.js in my www folder and EmailCompser.h, EmailCompser.m in resource folder of application.
I have created a button in jQuery mobile.
Now i want to populate mail composer view when click on the Mail button
<a href="???" data-icon="arrow-r" data-iconpos="left" class="ui-btn-left" >E-MAIL</a>
It will not open on click of a link unless you write the cordova code to initiate the plugin, try this:
<script type="text/javascript">
function openMail(){
var args;
Cordova.exec(null, null, "EmailComposer", "showEmailComposer", [args]);
}
</script>
<a href="#" onclick="openMail()" data-icon="arrow-r" data-iconpos="left" class="ui-btn-left" >E-MAIL</a>
这篇关于如何发送电子邮件使用邮件作曲家插件在iphone使用手机差距jQuery手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!