How to use the linux mail command

The other night I was messing around with the mail command on my setup because I wanted to send e-mails. Some how I made it so that every time I opened Terminal, it says “You have mail.” It was very annoying, but I did not know how to get rid of it. After about an hour of browsing google, all the links I found were too “techie” for me to understand. Finally I stumbled on this link:

It has a very simple explanation on how to deal with the mail command.

Here are the very basic, Hope it helps!

$ mail
Subject: Enter subject then press enter
Type in message into this blank space.
Type in as much as you want.
To end this and get out of it, press CTRL+D
$ mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/test": 1 message 1 new
>N  1 MAILER-DAEMON@test.lo  Mon Nov 10 20:38  46/1840  "Undelivered Mail Retu"
? 1
? delete 1
? q

Enter “mail” to get into the mail prompt.
When you are at the mail prompt, enter the number to read the mail.
“Delete X” – any number to delete the message.
“q” to quit.