fixed typo in some keys in the settings.xml file
refactored some code in the Email class in the maLib library