added return type for email service.