platforms: android,ios
$ cordova plugin add com.ideateam.plugin.emailer


This is a plugin implementation of the Emailer function which call native Email sendler and can pass parametrs with file path which will be attached to the mail.

Installation for Android

Execute in CordovaCLI:

cordova create myApp MyAPP
cordova pllatform add android
cordova plugin add

Call function cordova.emailer from js code with params:

cordova.emailer(callback, error, mail);

callback - success function
error - error function
mail - json object:

{ mail: '', subject: 'Report', text: 'Hello.
Calendar plan in attach.', attachPath: 'file:///mnt/card/fileName' }

Cordova docs