I\'ve built a simple jQuery Mobile based app, and trying to compile it with Phonegap. I\'d like the users to be able to send some content from the app via email, but I can\'
As naugtur suggested, try some troubleshooting techniques, like.. does it work if you remove temporarily those custom scripts: jsStuff.js and json2.js? I know they may be required in your app but it may help you locate the source of the problem. Try sending console messages or alerts inside you doEmail function. Hope it helps.
I think you have to change it to <a href="javascript:doEmail()">Send Mail</a>
, onclick isn´t a iphone event
For those finding this question whilst trying to get an Email Composer to work, you no longer need to add things to the plist. The new CLI interface handles that for you.
The most current version of the Email Composer plugin is here - https://github.com/katzer/cordova-plugin-email-composer
And the way to add it to your project is this in the command line: cordova plugin add de.appplant.cordova.plugin.email-composer && cordova prepare
Okay, I know this is an old thread but it looks like the correct answer has not been posted. For future readers who may stumble on this:
You have to add the EmailComposer plugin into your PhoneGap.plist file, under plugins add a new row with "EmailComposer" in the left column, and "EmailComposer" in the right column.
Seems like the problem was related to the way I added the plugin files to the xCode project. If you need extra details: http://groups.google.com/group/phonegap/browse_thread/thread/6fd7d73d3532effd/4ae9daa0b746ceb5#4ae9daa0b746ceb5
You must add the plugin into the PhoneGap.plist.
Add a new entry with Key "EmailComposer" and value "EmailComposer"