|
Retrieving a single message |
|
Upon establishing a connection to a IMAP server you can retrieve a message in the Imap account mailbox by invoking the GetMessage method and passing the one-based message ID as an argument.
Example
[C#]
// Get the first message
EmailMessage message = myImap.GetMessage(1);
[Visual Basic]
' Get the first message
Dim message As EmailMessage = myImap.GetMessage(1)