Sending Mail from Linux Command Line using Gmail

Was knocking together a little script tonight that downloads a few pages that I would like to read in the morning and then email them to me. I had a problem though finding a simple way to send an email from the command line in a script.

Then I came across this article which shows you howto do it using a program called ssmtp, works brilliantly.