added APIEmailService.getEmailTemplate