电子邮件生成器插件phonegap android
我尝试使用电子邮件插件cordova。我将按照以下文档进行操作: 我创建了一个js,如下所示:电子邮件生成器插件phonegap android,android,cordova,email,Android,Cordova,Email,我尝试使用电子邮件插件cordova。我将按照以下文档进行操作: 我创建了一个js,如下所示: openDraft = function (isHtml) { if (isHtml && ['Win32NT', 'windows'].indexOf(device.platform) > -1) { alert('Not supported on that platform!');
openDraft = function (isHtml) {
if (isHtml && ['Win32NT', 'windows'].indexOf(device.platform) > -1) {
alert('Not supported on that platform!');
return;
}
cordova.plugins.email.open({
to: 'to@email.de',
cc: ['cc1@email.de', 'cc2@email.de'],
bcc: ['bcc1@email.de', 'bcc2@email.de'],
subject: isHtml ? 'Body with HTML and CSS3' : 'Body with plain text',
body: getBody(isHtml),
isHTML: isHtml
}, showToast);
};
我添加了config.xml:
我在mail.html上写:
<input type="button" onclick="openDraft.open();" value="Send mail" />
我还包括我的剧本
但什么都不是展示
谢谢