You could also use sendEmail from http://caspian.dotconf.net/menu/Software/SendEmail/. It is even simpler and seems to need no configuration. See my notes at http://kwhitefoot.posterous.com/send-email-from-the-command-line-to-gmail for the very little that is needed to install it on Ubuntu and a little script I use to backup directories to Gmail.