是我在该smtp服务器上的邮箱密码吗?应该怎么设置?sendMailSession = Session.getInstance(props, null);
改为:
sendMailSession =Session.getDefaultInstance(props, new Authenticator(){
         public PasswordAuthentication getPasswordAuthentication(){
          return new PasswordAuthentication(username(用户名),userpass(密码));}});我用了这种方法以后也还是不行,还是connect不了smtp服务器。