Recreated Email.java to use JavaMail.