Using getToRecepients()

31 views
Skip to first unread message

Ajeet Singh Chauhan

unread,
May 30, 2017, 11:21:40 PM5/30/17
to InboxSDK
InboxSDK.load('1', 'sdk_alldefined_55b0913bf0').then(function(sdk){

sdk.Compose.registerComposeViewHandler(function(composeView){
    composeView.on('recipientsChanged', function(event) {
     var a= event.composeView.getToRecipients();
 console.log(a);
    });

    
  });

});

I am not able to use it, Please help me I am new to InboxSDK 

Ajeet Singh Chauhan

unread,
May 31, 2017, 12:02:49 AM5/31/17
to InboxSDK
sorry guys, I found the solution on my own, here is the solution for newbies
InboxSDK.load('1', 'sdk_alldefined_55b0913bf0').then(function(sdk){
sdk.Compose.registerComposeViewHandler(function(composeView){
composeView.on('recipientsChanged', function(event) {
      var a= composeView.getToRecipients();
console.log(a);
var cc = composeView.getCcRecipients();
console.log(cc);
var bcc= composeView.getBccRecipients();
console.log(bcc);
    });

});
});
Reply all
Reply to author
Forward
0 new messages