Hi,
I am using rebex mail for a while now, but get an error when using getmailmessage.
I only get this error on messages containing two attachments with the same name.
How can i solve this eror?
Kind regards.
Code:
Dim message As MailMessage
Dim popclient As Pop3
Dim colMessages As Pop3MessageCollection
popclient = New Pop3
colMessages = New Pop3MessageCollection
popclient.Connect("xxxxx")
popclient.Login("xxxxx", "xxxxx")
colMessages = popclient.GetMessageList(Pop3ListFields.SequenceNumber)
For Each oMessage As Pop3MessageInfo In colMessages
message = popclient.GetMailMessage(oMessage.SequenceNumber)
MsgBox(message.From)
Next
Error:
System.FormatException was unhandled
Message=Index (zero based) must be greater than or equal to zero and less than the size of the argument list.