Added enum and classes to check the EmailType