Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过 JavaMail 获取电子邮件的接收日期?我想打印收到的日期作为输出。有什么方法可以调用收到的邮件日期并打印出来吗?
System.out.println(recievedDate);
试试这个方法
javax.mail.Message 类中的 getReceivedDate()