email - Add arguments cc and bcc blackberry.invoke.MessageArguments in javascript -


i working phonegap project blackberry os 7 , want add cc , bcc arguments in email composed blackberry 7 api blackberry.invoke.messagearguments ()

actually api accepting 3 arguments torecipients, subject , email body. there solution add rest of 2 arguments cc , bcc. have used following code:

<script type="text/javascript">      var args = new blackberry.invoke.messagearguments('foo@domain.com', 'hello', 'world');   args.view = blackberry.invoke.messagearguments.view_new; // new    blackberry.invoke.invoke(blackberry.invoke.app_messages, args);  // new message </script>  

for more reference see on following link. blackberry invoke api messagesarguments

if building phonegap application can use "mailto". have tested on blackberry 7 device , woking fine me.

sample code:

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

hope solve problem.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -