How to broadcast message to a group

Hi All:

Do any one know how to broadcast a message to all the users in a group?

I had try this

usr= groupName + “@broadcast.” + serverName;

msg= new Message( usr, null, tempMsg, “”, Message.CHAT_TYPE );

I have check the xml text which is correct

But dont know why the users cant receive the message.

Thanks for help.

All I know is to right click the group name in Spark and it’‘s an option. As far as scripting it, dunno. Check the Spark code for clues is what I’'d do.