For most distros, sending email just works. However not all ISPs
allow email to be sent out to the Internet. Typically they will
give you a mail relay if they block outgoing email.
Here's a troubleshooting tip, add "-v" to the mail command and
it will let you see the results of the connection attempts. For
example: echo test | mail -s testing -v
me@myaddress.com
You can also run mailq to see if email is queued up waiting to
be delivered.