There are several ways to talk with others in RotMG.
This is the simplest way to talk to others. Simply press Enter, type in your message, and press Enter again. This type of message can be seen by anyone who is around you.
When you want to talk with someone privately, this is the way to go. Type in /tell <player name> <text> or /t <player name> <text> in order to privately message that person. You can also press the reply button (Tab is the default) to automatically and quickly reply to the last person you sent a tell to.
If you are in a guild, you have the additional option of talking with your guild as a whole, by typing (without pressing enter) G, or (after pressing enter) /guild <text> or /g <text>. This lets you talk privately, but with more than a single person.