A Ruby script to send mails based on templates