implemented email template