OpenPop.NET POP3 Library Documentation

Pop3Client.GetMessage Method

Fetches a message from the server and parses it

public Message GetMessage(
   int messageNumber


Message number on server, which may not be marked as deleted.
Must be inside the range [1, messageCount]

Return Value

The message, containing the email message


Exception Type Condition
PopServerException If the server did not accept the command sent to fetch the message

See Also

Pop3Client Class | OpenPop.Pop3 Namespace