How can the 'mail' command be used?

It you want to send an email to a given address put it as an argument to the mail command:

mail -s "Some subject" [email protected]

see man mail for other options

Any text you type after issuing the command you can enter the text for your mail directly in the terminal. To end mail text entry, enter a new line with a single ..

Do note that this just queues the mail for sending as if your mac were a functioning mail server. Local delivery to local accounts is easy to set up, to set up a working mail server that connects to the internet requires some more advanced set up as well as a relationship with someone else that operates a mail relay. This isn't a client that works directly with mail services like gmail / yahoo / hotmail or iCloud (MobileMe).