Added enum for connection security type, modified code to use enum, added other changes to get all JUnits passing. Note, this project now uses JavaMail 1.5.