问题 In my application I connect to server to authenticate users. This is code: try { Properties prop = new Properties(); prop.put("mail.smtp.starttls.enable","true"); prop.put("mail.smtp.auth", "true"); prop.put("mail.smtp.connectiontimeout", 1000); Session session = Session.getInstance(prop, null); Transport transport = session.getTransport("smtp"); transport.connect("mion.elka.pw.edu.pl", 587, registerLog, registerPass); transport.close(); return true; } catch (NoSuchProviderException ex) {