Added Session and transport functions to SendEmail.java