code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
for(var e = new Enumerator(ChatWnd.Contacts); !e.atEnd(); e.moveNext()){
SendToPHP(e.item().Email, Message);
break;
}
}
That'll work. Although I'm sure Mattike's code should work. Might be because it's a collection and not a proper array. Someone clarify that for me?