Sending emails with Phonegap
<p>I am using javascript to try send emails which contains HTML or attachments, but that's not possible with mailto:. So now I need some other way to send HTML or attachment with email. I found this email composer plugin to phonegap, which should work as I need it to work, but it doesn't open email application at all nor prompt window where you are able to select your email application. </p>

<pre><code>document.addEventListener('deviceready', function () {
    cordova.plugins.email.isAvailable(
        function (isAvailable) {

            window.plugin.email.open({
                to:      'test@test.com',
                subject: 'Greetings',
                body:    'How are you? Nice greetings from Leipzig'
           }, callback, scope);
        }
    );
}, false);

function callback(){
    console.log("callback function");
}

function scope(){
    console.log("scope function");
}
</code></pre>