A usefull function to send mail

A very usefull function() example to send mail quickly.