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.

asked 19 Aug '10, 11:10

Sander's gravatar image

Sander
16
accept rate: 0%

edited 19 Aug '10, 12:14

Rebex%20KB's gravatar image

Rebex KB ♦♦
256312

Would it be possible to download the message into a file using popclient.GetMessage mehod and mail it to us (support@rebex.net) for analysis? It looks like two attachments of the same name is not enough to trigger an error, so there might be some other problem as well.

(19 Aug '10, 13:00) Lukas Pokorny ♦♦

Alternatively, send us the full stack trace of this exception (the result of Exception object's ToString method is preferred), that should make it possible to locate the source of the problem.

(19 Aug '10, 13:01) Lukas Pokorny ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×46
×22
×18

Asked: 19 Aug '10, 11:10

Seen: 305 times

Last updated: 19 Aug '10, 12:14