rewrite mail module to send html emails
add email template