Send email


#1

Hi there. i am trying to create an Android app.
But i m struggling on the part of

  • checking if am connected to the internet
  • zip my file and send it to my email

Your help will be highly appreciated.


#2

To check If you are connected to internet use

document.addEventListener(“offline”, onOffline, false);
document.addEventListener(“online”, onOnline, false);

inside DeviceReady

To Send Mail use following plugin
cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git

and to zip the contents use following plugin
cordova plugin add https://github.com/MobileChromeApps/zip.git


#3

Thanks a lot for your help…