Codestone Ltd logo

Search FAQ


Internet Mail Client Control FAQs/Objects/POP3Client Object

How can I retrieve the messages on a POP3 server without deleting them?

ID: S2E38 DATE: 27/02/2003 11:56:38

The POP3Client.RetrieveMessages() method is designed to meet the needs of the majority of simple applications which just need to retreive and delete all the messages on a POP3 Server.

In advanced applications you may wish to retreive the messages without deleting them from the server - this is the functionality offered by the 'leave mail on server' option of many desktop email clients.

In order to retrieve the messages without deleting them you will need to use the lower level POP3RETR command.

pop3.RetrieveMessages

for each msg in pop3.Messages
  pop3
.Pop3RETR msg.Ordinal
next


Can't find the answer to your question? We're here to help!