OpenPop.NET POP3 Library Documentation

Pop3Client.GetMessageHeaders Method

Get all the headers for a message.
The server will not need to send the body of the message.

public MessageHeader GetMessageHeaders(
   int messageNumber


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

Return Value

MessageHeaders object


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

See Also

Pop3Client Class | OpenPop.Pop3 Namespace