implement the email template module