借宝地顶一下。请大家分辨一下,这个是不是传说中的“倒分”贴?
http://community.csdn.net/Expert/topic/3645/3645826.xml

解决方案 »

  1.   

    这样设吗,lhj师傅:transport.connect("smtp.163.com","帐号","密码");//以smtp方式登录邮箱但是还是不行啊。
      

  2.   

    你也许需要写一个认证的类,因为现在mail服务器大多都是通过认证才能发信的。(给分在右上角的“管理”里)
      

  3.   

    Properties props = new Properties();
        props.put("mail.smtp.host", "127.0.0.1");
        props.put("mail.smtp.auth", "true");
        Session smtpSession = Session.getInstance(props,
            new Authenticator() {
          protected PasswordAuthentication getPasswordAuthentication()
          {
            return new PasswordAuthentication("user", "password");
          }
        });
    网上例子很多的,搜索一下。
      

  4.   

    evilegend(本来无一物,何处惹尘埃),你好,那现在通过mail发邮件是必须要通过认证,是吗?
    那props.put(  "mail.smtp.auth  ",    "true");不是可以写false吗!?怎么解释呢,麻烦您了。。谢谢