OK, here is the code from the Java class, I think this will be the relevant part.
Properties props = new Properties();
props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.host", sHost);
props.setProperty("mail.user", sUser);
props.setProperty("mail.password", sPass)...