javascript - Phonegap email composer plugin for BlackBerry OS 7 -


it might repeating question did not find solution after search of whole day. i'm developing phonegap application blackberry os 7 stuck email(message) composer plugin. there plugin of phonegap (cordova 2.7) email composer support blackberry os 7.

if guys have idea please share it. have tried blackberry os message api , tried mailto: of html5 both not working might i'm doing in wrong way, if guys have tried , success please share process.

blackberry 7 provides html5 api blackberry.invoke.messagearguments email composer , easy use instead of writing plugin this.

steps implement blackberry.invoke.messagearguments

  1. add these code config.xml file

    <feature id="blackberry.invoke" /> <feature id="blackberry.invoke.messagearguments" /> <feature id="blackberry.message" /> 
  2. add code js file , call method.

    function sendmail(){

    var torecipient = "user@gmail.com"; var subject = "test mail"; var body = "this test mail, please not reply ..."; var args = new blackberry.invoke.messagearguments(torecipient, subject, body); args.view = blackberry.invoke.messagearguments.view_new; blackberry.invoke.invoke(blackberry.invoke.app_messages, args); } 

another way use email composer in blackberry 7 use "mailto"

sample code is:

var smailto = "mailto:";         smailto += escape(torecipient) +"?subject=" +escape(subject) +"&body=" +escape(body) +"&cc=" +escape(ccrecipient); window.open(smailto, '_self'); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -