怎么用代码实现登入我的油箱并读取我的邮件发件人、主题、内容、等信息。知道的高手请赐教!谢谢!!

解决方案 »

  1.   

    yahoo、 hotmail 、aol和 gmail都分别采用什么协议?
      

  2.   


    yahoo、 hotmail 、aol和 gmai邮箱都分别采用什么协议?
      

  3.   

    Properties props = new Properties ();
    props.put("mail.smtp.host", "smtp.jspinsider.com");
    Session sendMailSession = Session.getInstance(props, null);
    Message newMessage = new MimeMessage(sendMailSession);
     newMessage的相应get方法就可以得到你需要的信息。Yahoo:smtp协议
    hotmail:HTTPMail协议
    gmail:https:Hypertext Transfer Protocol Secure 安全超文本传输协议 
    aol:smtp协议