Added logging, re-did exception handling in Email class