hooking up emailTemplate