Receive POP3 Emails using Java

Take a look at this example on how to read pop3 emails. But there are 3 parameters you need to prepare: your pop3 server, username and passowrd for that server. Pretty straight forward, not much to explain. All that is missing is the readContent() function which prints the message.getContent(). First you need to understand that an Email message content can be just a regular String or an input stream, but in most cases it is a Multipart object which can be composed of different parts of different types. It can also actually contain inner multiparts. Take a look at readContent() You will also need the mail.jar that can be found here. download source