Archive for category Java Mail Api

Read Emails from Inbox

You can use javax.mail.Store to connect, query, and retrieve messages from an Internet Message Access Protocol (IMAP) e-mail account. Following code connects to an IMAP account, retrieves the recent five messages from that IMAP account, and marks those five messages as “read”. We have a file in our classpath to store email server’s properties […]

, , ,