user1124378
user1124378

Reputation:

PhoneGap Email Plugin

I am trying to use the plugin here This is the first time I have started to use Phonegap in Android, so the process is a little unfamiliar to me.

So far I have added the .JAVA file to here "src.org.apache.cordova" I have added the .JS to the www folder and have referenced it in my HTML file.

I have added the following to my config.xml

<plugin name="EmailComposer" value="org.apache.cordova.emailComposer"/>

As the README file does not really go into specifics, I am assuming this is the value that must go in here.

I then use the following in my HTML file.

window.plugins.emailComposer.showEmailComposerWithCallback(null,"Look at this photo","Take a look at <b>this<b/>:",["[email protected]", "[email protected]"],[],[],true,["_complete_path/image.jpg", "_other_complete_path/file.zip"]);

This is straight from the README file, nothing happens when I run the application. Not even an error.

I have tried using various versions in the emulator and on a Samsung S2 running 4.0.3

Phonegap version 2.7

Can anyone point me in the right direction?

Thanks

Upvotes: 8

Views: 2348

Answers (3)

tottomotto
tottomotto

Reputation: 2352

The mail plugin from katzer works like a charm.

Use cordova plugin add [email protected] to add install it locally.

If you are using PhoneGap Build, don't forget to add the following line to the config.xml

<gap:plugin name="cordova-plugin-email-composer" version="0.8.3" source="npm" />

Upvotes: 2

vijay chhalotre
vijay chhalotre

Reputation: 416

you need to use this plugin its easy to use with more features available.

latest stable version - cordova plugin add [email protected]

https://github.com/AppGyver/email-composer/

https://github.com/katzer/cordova-plugin-email-composer

Upvotes: 0

user1124378
user1124378

Reputation:

This was simply down to case sensitive values - I changed the following

org.apache.cordova.emailComposer

For

org.apache.cordova.EmailComposer

Upvotes: 1

Related Questions