Initial template_mail implementation.