Can't send email with Intel XDK

I was all day trying to find a way to send an Email from an app I'm creating in Intel XDK (with Cordova)

Now, I don't really know how Cordova works, I just know HTML, CSS and JS, but I can't figure out why this isn't working.

This is my HTML:

    <script src="cordova.js"></script>
    <script src="js/app.js"></script>
    <script src="xdk/init-dev.js"></script>

  <section class="modal_buttons_st">
   <button onclick="cerrarModal();" id="modal_cerrar" class="modal_button">Modificar</button>
   <button onclick="draftEmail();" id="modal_send" class="modal_button">Enviar por Mail</button>
  <script src="assets/js/jquery.js"></script>
  <script src="assets/js/app.js"></script>

(You can see I'm calling draftEmail(); on click of one of the buttons at the end)

And this is the section of my app.js that contains the function

function draftEmail() {
    var bodyText = 'Sample Text';
    intel.xdk.device.sendEmail(bodyText, "", "Sample Title", true, "", "" ); 

I have selected the device plugin and it shows as installed when I build, just when I click the button, nothing at all happens

Thanks and sorry for bad english


Hi first of all you have to add the permission to the apk to access to external like call or send mails, so you must add the access on the whitelist get sure to add in the correct build (iOS, android, crosswalk etc), and u have to add mailto:* where it said intent (external whitelist).

other important thing is if you emulate the apk it will open probably microsoft outlook so always for test that build the apk and try on real phones.

hope that helps you and sorry for the bad english to =)

Need Your Help

For loop to copy entire row when match found between two sheets

excel vba excel-vba

I am trying to get a For loop which copies an entire row from worksheet 1 to worksheet 3 if the cell in column C in ws1 and column AT in ws2 matches. I have two issues:

Deleting a record/multiple records with a checkbox(PHP/MYSQL)

php mysql

Please can someone help me with this. I'm a total noob with php/mysql/stackoverflow.