I'm getting the following error for a specific email using a POP3 server:
Rebex.Net.Pop3Exception: The specified message is out of range.
When using:
Dim SequenceNumber As Integer = 0
Dim MailMsg As Rebex.Mail.MailMessage = Nothing
Dim UTF8 As New Text.UTF8Encoding
Dim RebexPop3 as new rebex.Net.Pop3
Dim Message As Rebex.Net.Pop3MessageCollection
SequenceNumber = Message.SequenceNumber
MailMsg = RebexPop3.GetMailMessage(SequenceNumber)
MailMsg.DefaultCharset = UTF8 ' Error generated when filling UTF8
You never set
Messageto anything soSequenceNumberwould be nothing or maybe 0. From their example at http://www.rebex.net/secure-mail.net/features/pop3.aspxOnce you set
Messageas they didlist, you would have access to theSequenceNumberproperty of each item in the list as they show in the For Each loop.