cordova-plugin-email-composer: Unable to open email client

Hello folks,

I had tried everything to use this cordova-plugin-email-composer in my cordova based phonegap application. when I am using below code that complains me through chrome browser inspect shows **“Cannot read property ‘email’ of undefined” ** , how ever I already used **“email_composer.js”**in my index.html file. Additionally, I already included <gap:plugin name=“cordova-plugin-email-composer” version=“0.8.3” source=“npm” /> in my config.xml too. can you please help why code is not working ?

In my device ready function and button click event :

cordova.plugins.email.open({
            to: '',
            subject: 'test subject',
            body:'',
            isHTML: false
        });

my index.html code :

<script type="text/javascript" src="js/jspdf.min.js"></script>
<script type="text/javascript" src="js/email_composer.js"></script>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Using version 0.8.2 solved the issue for me

Any updates guys, how to resolve this issue?

how do u install a 0.8.2 ? from a local folder ? installing it from a Git Pull request is unsuccessful for some reason

Fetching plugin “cordova-plugin-email-composer@0.8.2” via npm Error: Failed to fetch plugin cordova-plugin-email-composer@0.8.2 via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: version not found: cordova-plugin-email-composer@0.8.2