1: You have to iterate (or loop though) the whole contact list and match each contact's name with
Origin.
JScript code:
for ( e = new Enumerator(Messenger.MyContacts);!e.atEnd();e.moveNext() ) {
var Contact = e.item();
if (Contact.Name == Origin){
// SendMessage code here
break;
}
}
2: please make it more clearer because i can't understand it fully.