I am working on VS2015 and an Apache Cordova app. I want to send email via my app. I tried to make this but it didn't worked with me. I have add email - composer plugin from https://github.com/katzer/cordova-plugin-email-composer
Here is my code :
<div class="separator-fields"></div><a class="action-button" id="sendemail">Contact Us</a>
Here is my function :
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/framework.js"></script>
<script>
$("#sendemail") .click(function() {
cordova.plugins.email.open({
to: 'to email',
cc: 'cc email',
bcc: ['bcc email', 'bcc email'],
subject: 'Greetings',
body: 'How are you? Nice greetings from Leipzig'
});
});
</script>
but in my console log i have an error "Uncaught TypeError: Cannot read property 'plugins' of undefined"
Please advice .