Step 1: Populate an array of emails
Step 2: Loop the emails to create a chat window and send a message
js code:
var aEmails = new Array();
aEmails.push ( 'johndoe@hotmail.com' );
aEmails.push ( 'johndoe1@hotmail.com' );
for ( var sEmail in aEmails ) {
MsgPlus.OpenChat( aEmails [ sEmail ] ).SendMessage ( 'this is a message' );
}
Now you do not have to populate the emails through the source code you can show a window that has a list of emails and they can select which ones and populate it that way.