Reputation: 1139
How can I get the received date of the email through JavaMail? I would like to like to print the received date as output. Is there any method to call the received mail date and print it?
System.out.println(recievedDate);
Upvotes: 4
Views: 5159
Reputation: 2237
Try this method
getReceivedDate() in javax.mail.Message class
Upvotes: 6