Added support for sending email

hi,

I filled in the mail.rb file so email can be sent.

Jon.