Retrieving a single email message |
Upon establishing a connection to a POP3 server you can retrieve a message in the account mailbox by invoking the Pop#getMessage method.
Example
// establish connection pop.connect();
// retrieves first message in mailbox EmailMessage message = pop.getMessage(1);
See also
|