You can write a small script in any language.
see here for an example in ruby.
http://tuxworld.wordpress.com/2009/11/11/send-gmail-from-ruby-script/
--
Regards,
T.Shrinivasan
My experiences with Linux are here
http://goinggnu.wordpress.com
For Free and Open Source Jobs
http://fossjobs.in