phonegap/phonegap-plugins — pull request #435 by svendroid (2012-03-31 21:41:36+00:00)
Title: Android Webintents Emailaddress

Added the "android.intent.extra.EMAIL"-Intent-Extra.
Allows to specify the emailaddress of the receiver for an email intent.
Usage is shown in the adapted sendEmail function:

function sendEmail(receiver, subject, body){
var extras = {};
extras[WebIntent.EXTRA_EMAIL] = receiver;
extras[WebIntent.EXTRA_SUBJECT] = subject;
extras[WebIntent.EXTRA_TEXT] = body;

window.plugins.webintent.startActivity({
action: WebIntent.ACTION_SEND,
type: 'message/rfc822',
extras: extras
},
function() {},
function() {
alert('Failed to send email via Android Intent');
}
);
}