Skip to content
Snippets Groups Projects
Commit b4383196 authored by Jeremy Guiselin's avatar Jeremy Guiselin
Browse files

Update controller.js add send email scope function

parent 6951c58d
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,23 @@
$scope.myGoBack = function() {
$ionicHistory.goBack();
};
$scope.sendEmail = function () {
//cordova plugin add https://github.com/jcjee/email-composer.git
if(window.plugins && window.plugins.emailComposer) {
window.plugins.emailComposer.showEmailComposerWithCallback(function(result) {
console.log(result);
},
"", // Subject
"", // Body
["contact@betskills.com"], // To
null, // CC
null, // BCC
false, // isHTML
null, // Attachments
null); // Attachment Data
}
}
}
angular.module('starter')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment