The "mail" command is for mail on the local system, sort of like one of those big inter-office delivery envelopes. If you want a command line tool to get into e-mail on an Internet server, that's a different case. You'd probably want something like mutt.