From : http://caspian.dotconf.net/menu/Software/SendEmail/