Software Archive
Read-only legacy content
17061 Discussions

E-MAIL (CORDOVA PLUGINS)

Jorge_F_1
Beginner
193 Views

Personally, I need some help, I am new to android and Intel XDK. See my code below. I can not send email. Where am I 

going wrong? because the code produces no effect ?. I am using Intel XDK version 3400 and the plug-cord-mail ... My 

smartphone is moto g, android. please help me. Thank you.

<Script>
     document.addEventListener ('deviceready', function () {
     // Cordova.plugins.email is now available
}, False);

cordova.plugins.email.isAvailable (
     function (isAvailable) {
     // Alert ( 'Service is not available') unless isAvailable;
     }
);
</ Script>
    
<Button onclick = "mail ()"> Email </ button>

<Script>
email function () {
     alert ( 'ok')
     cordova.plugins.email.open ({
     to 'luisv77@bol.com.br'
     subject: 'Greetings'
     body: 'Hello How are you?'
     });
}
</ Script>

0 Kudos
0 Replies
Reply