email template rewriten