Cordova插件电子邮件编辑器不发送电子邮件

时间:2016-09-09 22:42:27

标签: cordova email cordova-plugins

我在Visual Studio 2015 aplication for android

中安装https://github.com/katzer/cordova-plugin-email-composer

并添加

function sendEmail() {


            cordova.plugins.email.isServiceAvailable(
                function (isAvailable) {
                    alert('isAvailable');

                    cordova.plugins.email.open({
                        to: ['mymail@gmail.com'],
                        subject: 'EmailComposer plugin test',
                        body: '<h2>Hello!</h2>This is <strong>HTML</strong>',
                        isHtml: true
                    }, callback);
                }


            );

通话功能不会收到任何错误,但我的地址无法收到电子邮件。

任何其他设置?

1 个答案:

答案 0 :(得分:1)

  

通话功能后没有收到任何错误,但是我的地址没有收到电子邮件。

如果您没有收到提醒信息isAvailable。您的手机可能无法发送电子邮件。请参阅Determine if the device is capable to send emails

如果您确实收到了isAvailable条消息。 cordova.plugins.email.open仅要求您选择用于打开电子邮件草稿的电子邮件应用。 “发送”决定由用户做出。我在我的Android设备上测试过,它运行正常。

相关问题