Sending mails from Template

I have added a method to MailImpl for sending a mail with a freemarker template. It simply takes the name of the template and a map for the values to parse and renders it. I am using this in all of my applications for sending emails and I think this would be a nice core feature. Let me know what you think.