Added initial implementation of the email service.