Minecraft wiki entry for Development_versions, associated text: General syntax: /teammsg <message> Sends <message> to all players on the team of the player who runs the command. Available to all players on a team.
Alias: /tm <message>.
Clicking the team name opens a new /teammsg command.