vijay
vijay

Reputation: 1139

Get Mail received date JavaMail

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

Answers (1)

Joseph Selvaraj
Joseph Selvaraj

Reputation: 2237

Try this method

getReceivedDate() in javax.mail.Message class

Upvotes: 6

Related Questions