Added classes and interfaces to the email-system to support multiple mail APIs